cad065429bfafef1e2376181ff49e3db.yaml.php 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436
  1. <?php
  2. return [
  3. '@class' => 'Grav\\Common\\File\\CompiledYamlFile',
  4. 'filename' => '/home/kevin/Sites/static-ethica.net/user/plugins/login/blueprints.yaml',
  5. 'modified' => 1513090740,
  6. 'data' => [
  7. 'name' => 'Login',
  8. 'version' => '2.5.0',
  9. 'description' => 'Enables user authentication and login screen.',
  10. 'icon' => 'sign-in',
  11. 'author' => [
  12. 'name' => 'Team Grav',
  13. 'email' => 'devs@getgrav.org',
  14. 'url' => 'http://getgrav.org'
  15. ],
  16. 'keywords' => 'admin, plugin, login',
  17. 'homepage' => 'https://github.com/getgrav/grav-plugin-login',
  18. 'bugs' => 'https://github.com/getgrav/grav-plugin-login/issues',
  19. 'license' => 'MIT',
  20. 'dependencies' => [
  21. 0 => [
  22. 'name' => 'grav',
  23. 'version' => '>=1.3.9'
  24. ],
  25. 1 => [
  26. 'name' => 'form',
  27. 'version' => '>=2.4.0'
  28. ],
  29. 2 => [
  30. 'name' => 'email',
  31. 'version' => '~2.0'
  32. ]
  33. ],
  34. 'form' => [
  35. 'validation' => 'loose',
  36. 'fields' => [
  37. 'tabs' => [
  38. 'type' => 'tabs',
  39. 'active' => 1,
  40. 'class' => 'subtle',
  41. 'fields' => [
  42. 'login' => [
  43. 'type' => 'tab',
  44. 'title' => 'PLUGIN_LOGIN.BTN_LOGIN',
  45. 'fields' => [
  46. 'enabled' => [
  47. 'type' => 'hidden',
  48. 'label' => 'PLUGIN_LOGIN.PLUGIN_STATUS',
  49. 'highlight' => 1,
  50. 'default' => 1,
  51. 'options' => [
  52. 1 => 'PLUGIN_ADMIN.ENABLED',
  53. 0 => 'PLUGIN_ADMIN.DISABLED'
  54. ],
  55. 'validate' => [
  56. 'type' => 'bool'
  57. ]
  58. ],
  59. 'built_in_css' => [
  60. 'type' => 'toggle',
  61. 'label' => 'PLUGIN_LOGIN.BUILTIN_CSS',
  62. 'highlight' => 1,
  63. 'default' => 1,
  64. 'help' => 'PLUGIN_LOGIN.BUILTIN_CSS_HELP',
  65. 'options' => [
  66. 1 => 'PLUGIN_ADMIN.ENABLED',
  67. 0 => 'PLUGIN_ADMIN.DISABLED'
  68. ],
  69. 'validate' => [
  70. 'type' => 'bool'
  71. ]
  72. ],
  73. 'route' => [
  74. 'type' => 'text',
  75. 'size' => 'medium',
  76. 'label' => 'PLUGIN_LOGIN.ROUTE',
  77. 'help' => 'PLUGIN_LOGIN.ROUTE_HELP',
  78. 'placeholder' => '/my-custom-login'
  79. ],
  80. 'redirect_after_login' => [
  81. 'type' => 'text',
  82. 'label' => 'PLUGIN_LOGIN.REDIRECT_AFTER_LOGIN',
  83. 'help' => 'PLUGIN_LOGIN.REDIRECT_AFTER_LOGIN_HELP',
  84. 'placeholder' => '/my-page'
  85. ],
  86. 'route_forgot' => [
  87. 'type' => 'text',
  88. 'size' => 'medium',
  89. 'label' => 'PLUGIN_LOGIN.ROUTE_FORGOT',
  90. 'placeholder' => '/forgot_password'
  91. ],
  92. 'route_reset' => [
  93. 'type' => 'text',
  94. 'size' => 'medium',
  95. 'label' => 'PLUGIN_LOGIN.ROUTE_RESET',
  96. 'placeholder' => '/reset_password'
  97. ],
  98. 'route_profile' => [
  99. 'type' => 'text',
  100. 'size' => 'medium',
  101. 'label' => 'PLUGIN_LOGIN.ROUTE_PROFILE',
  102. 'placeholder' => '/user_profile'
  103. ],
  104. 'parent_acl' => [
  105. 'type' => 'toggle',
  106. 'label' => 'PLUGIN_LOGIN.USE_PARENT_ACL_LABEL',
  107. 'highlight' => 1,
  108. 'default' => 0,
  109. 'help' => 'PLUGIN_LOGIN.USE_PARENT_ACL_HELP',
  110. 'options' => [
  111. 1 => 'PLUGIN_ADMIN.ENABLED',
  112. 0 => 'PLUGIN_ADMIN.DISABLED'
  113. ],
  114. 'validate' => [
  115. 'type' => 'bool'
  116. ]
  117. ],
  118. 'dynamic_page_visibility' => [
  119. 'type' => 'toggle',
  120. 'label' => 'PLUGIN_LOGIN.DYNAMIC_VISIBILITY',
  121. 'highlight' => 0,
  122. 'default' => 0,
  123. 'help' => 'PLUGIN_LOGIN.DYNAMIC_VISIBILITY_HELP',
  124. 'options' => [
  125. 1 => 'PLUGIN_ADMIN.ENABLED',
  126. 0 => 'PLUGIN_ADMIN.DISABLED'
  127. ],
  128. 'validate' => [
  129. 'type' => 'bool'
  130. ]
  131. ],
  132. 'protect_protected_page_media' => [
  133. 'type' => 'toggle',
  134. 'label' => 'PLUGIN_LOGIN.PROTECT_PROTECTED_PAGE_MEDIA_LABEL',
  135. 'highlight' => 1,
  136. 'default' => 0,
  137. 'help' => 'PLUGIN_LOGIN.PROTECT_PROTECTED_PAGE_MEDIA_HELP',
  138. 'options' => [
  139. 1 => 'PLUGIN_ADMIN.ENABLED',
  140. 0 => 'PLUGIN_ADMIN.DISABLED'
  141. ],
  142. 'validate' => [
  143. 'type' => 'bool'
  144. ]
  145. ],
  146. 'routes' => [
  147. 'type' => 'section',
  148. 'title' => 'PLUGIN_LOGIN.ROUTES',
  149. 'fields' => [
  150. 'route_activate' => [
  151. 'type' => 'text',
  152. 'size' => 'medium',
  153. 'label' => 'PLUGIN_LOGIN.ROUTE_ACTIVATE',
  154. 'placeholder' => '/activate_user'
  155. ],
  156. 'route_forgot' => [
  157. 'type' => 'text',
  158. 'size' => 'medium',
  159. 'label' => 'PLUGIN_LOGIN.ROUTE_FORGOT',
  160. 'placeholder' => '/forgot_password'
  161. ],
  162. 'route_reset' => [
  163. 'type' => 'text',
  164. 'size' => 'medium',
  165. 'label' => 'PLUGIN_LOGIN.ROUTE_RESET',
  166. 'placeholder' => '/reset_password'
  167. ],
  168. 'route_profile' => [
  169. 'type' => 'text',
  170. 'size' => 'medium',
  171. 'label' => 'PLUGIN_LOGIN.ROUTE_PROFILE',
  172. 'placeholder' => '/user_profile'
  173. ],
  174. 'route_register' => [
  175. 'type' => 'text',
  176. 'size' => 'medium',
  177. 'label' => 'PLUGIN_LOGIN.ROUTE_REGISTER',
  178. 'help' => 'PLUGIN_LOGIN.ROUTE_REGISTER_HELP',
  179. 'placeholder' => '/register'
  180. ],
  181. 'user_registration.redirect_after_registration' => [
  182. 'type' => 'text',
  183. 'label' => 'PLUGIN_LOGIN.REDIRECT_AFTER_REGISTRATION',
  184. 'help' => 'PLUGIN_LOGIN.REDIRECT_AFTER_REGISTRATION_HELP',
  185. 'placeholder' => '/page-to-show-after-registration'
  186. ],
  187. 'user_registration.redirect_after_activation' => [
  188. 'type' => 'text',
  189. 'label' => 'PLUGIN_LOGIN.REDIRECT_AFTER_ACTIVATION',
  190. 'help' => 'PLUGIN_LOGIN.REDIRECT_AFTER_ACTIVATION_HELP',
  191. 'placeholder' => '/page-to-show-after-activation'
  192. ]
  193. ]
  194. ],
  195. 'rememberme' => [
  196. 'type' => 'section',
  197. 'title' => 'PLUGIN_LOGIN.REMEMBER_ME',
  198. 'fields' => [
  199. 'rememberme.enabled' => [
  200. 'type' => 'toggle',
  201. 'label' => 'PLUGIN_ADMIN.ENABLED',
  202. 'help' => 'PLUGIN_ADMIN.SESSION_ENABLED_HELP',
  203. 'highlight' => 1,
  204. 'options' => [
  205. 1 => 'PLUGIN_ADMIN.YES',
  206. 0 => 'PLUGIN_ADMIN.NO'
  207. ],
  208. 'validate' => [
  209. 'type' => 'bool'
  210. ]
  211. ],
  212. 'rememberme.timeout' => [
  213. 'type' => 'text',
  214. 'size' => 'small',
  215. 'default' => 604800,
  216. 'label' => 'PLUGIN_ADMIN.TIMEOUT',
  217. 'help' => 'PLUGIN_LOGIN.TIMEOUT_HELP',
  218. 'validate' => [
  219. 'type' => 'number',
  220. 'min' => 1
  221. ]
  222. ],
  223. 'rememberme.name' => [
  224. 'type' => 'text',
  225. 'size' => 'small',
  226. 'label' => 'PLUGIN_ADMIN.NAME',
  227. 'help' => 'PLUGIN_ADMIN.SESSION_NAME_HELP'
  228. ]
  229. ]
  230. ]
  231. ]
  232. ],
  233. 'registration' => [
  234. 'type' => 'tab',
  235. 'title' => 'PLUGIN_LOGIN.USER_REGISTRATION',
  236. 'fields' => [
  237. 'user_registration.enabled' => [
  238. 'type' => 'toggle',
  239. 'label' => 'PLUGIN_ADMIN.ENABLED',
  240. 'help' => 'PLUGIN_LOGIN.USER_REGISTRATION_ENABLED_HELP',
  241. 'highlight' => 1,
  242. 'options' => [
  243. 1 => 'PLUGIN_ADMIN.YES',
  244. 0 => 'PLUGIN_ADMIN.NO'
  245. ],
  246. 'validate' => [
  247. 'type' => 'bool'
  248. ]
  249. ],
  250. 'registration_fields' => [
  251. 'type' => 'section',
  252. 'title' => 'PLUGIN_LOGIN.REGISTRATION_FIELDS',
  253. 'fields' => [
  254. 'user_registration.fields' => [
  255. 'type' => 'array',
  256. 'value_only' => true,
  257. 'label' => 'PLUGIN_LOGIN.REGISTRATION_FIELDS',
  258. 'help' => 'PLUGIN_LOGIN.REGISTRATION_FIELDS_HELP',
  259. 'placeholder_key' => 'PLUGIN_LOGIN.REGISTRATION_FIELD_KEY',
  260. 'placeholder_value' => 'PLUGIN_LOGIN.REGISTRATION_FIELD_VALUE'
  261. ],
  262. 'user_registration.default_values' => [
  263. 'type' => 'array',
  264. 'label' => 'PLUGIN_LOGIN.DEFAULT_VALUES',
  265. 'help' => 'PLUGIN_LOGIN.DEFAULT_VALUES_HELP',
  266. 'placeholder_key' => 'PLUGIN_LOGIN.ADDITIONAL_PARAM_KEY',
  267. 'placeholder_value' => 'PLUGIN_LOGIN.ADDITIONAL_PARAM_VALUE'
  268. ]
  269. ]
  270. ],
  271. 'access_levels' => [
  272. 'title' => 'PLUGIN_ADMIN.ACCESS_LEVELS',
  273. 'type' => 'section',
  274. 'security' => 'admin.super',
  275. 'fields' => [
  276. 'user_registration.groups' => [
  277. 'type' => 'selectize',
  278. 'size' => 'large',
  279. 'label' => 'PLUGIN_ADMIN.GROUPS',
  280. '@data-options' => '\\Grav\\User\\Groups::groups',
  281. 'classes' => 'fancy',
  282. 'help' => 'PLUGIN_LOGIN.GROUPS_HELP',
  283. 'validate' => [
  284. 'type' => 'commalist'
  285. ]
  286. ],
  287. 'user_registration.access.site' => [
  288. 'type' => 'array',
  289. 'label' => 'PLUGIN_ADMIN.SITE_ACCESS',
  290. 'help' => 'PLUGIN_LOGIN.SITE_ACCESS_HELP',
  291. 'multiple' => false,
  292. 'validate' => [
  293. 'type' => 'array'
  294. ]
  295. ]
  296. ]
  297. ],
  298. 'options' => [
  299. 'type' => 'section',
  300. 'title' => 'PLUGIN_LOGIN.OPTIONS',
  301. 'fields' => [
  302. 'user_registration.options.validate_password1_and_password2' => [
  303. 'type' => 'toggle',
  304. 'label' => 'PLUGIN_LOGIN.VALIDATE_PASSWORD1_AND_PASSWORD2',
  305. 'help' => 'PLUGIN_LOGIN.VALIDATE_PASSWORD1_AND_PASSWORD2_HELP',
  306. 'highlight' => 1,
  307. 'options' => [
  308. 1 => 'PLUGIN_ADMIN.YES',
  309. 0 => 'PLUGIN_ADMIN.NO'
  310. ],
  311. 'validate' => [
  312. 'type' => 'bool'
  313. ]
  314. ],
  315. 'user_registration.options.set_user_disabled' => [
  316. 'type' => 'toggle',
  317. 'label' => 'PLUGIN_LOGIN.SET_USER_DISABLED',
  318. 'help' => 'PLUGIN_LOGIN.SET_USER_DISABLED_HELP',
  319. 'highlight' => 1,
  320. 'options' => [
  321. 1 => 'PLUGIN_ADMIN.YES',
  322. 0 => 'PLUGIN_ADMIN.NO'
  323. ],
  324. 'validate' => [
  325. 'type' => 'bool'
  326. ]
  327. ],
  328. 'user_registration.options.login_after_registration' => [
  329. 'type' => 'toggle',
  330. 'label' => 'PLUGIN_LOGIN.LOGIN_AFTER_REGISTRATION',
  331. 'help' => 'PLUGIN_LOGIN.LOGIN_AFTER_REGISTRATION_HELP',
  332. 'highlight' => 1,
  333. 'options' => [
  334. 1 => 'PLUGIN_ADMIN.YES',
  335. 0 => 'PLUGIN_ADMIN.NO'
  336. ],
  337. 'validate' => [
  338. 'type' => 'bool'
  339. ]
  340. ],
  341. 'user_registration.options.send_activation_email' => [
  342. 'type' => 'toggle',
  343. 'label' => 'PLUGIN_LOGIN.SEND_ACTIVATION_EMAIL',
  344. 'help' => 'PLUGIN_LOGIN.SEND_ACTIVATION_EMAIL_HELP',
  345. 'highlight' => 1,
  346. 'options' => [
  347. 1 => 'PLUGIN_ADMIN.YES',
  348. 0 => 'PLUGIN_ADMIN.NO'
  349. ],
  350. 'validate' => [
  351. 'type' => 'bool'
  352. ]
  353. ],
  354. 'user_registration.options.send_notification_email' => [
  355. 'type' => 'toggle',
  356. 'label' => 'PLUGIN_LOGIN.SEND_NOTIFICATION_EMAIL',
  357. 'help' => 'PLUGIN_LOGIN.SEND_NOTIFICATION_EMAIL_HELP',
  358. 'highlight' => 1,
  359. 'options' => [
  360. 1 => 'PLUGIN_ADMIN.YES',
  361. 0 => 'PLUGIN_ADMIN.NO'
  362. ],
  363. 'validate' => [
  364. 'type' => 'bool'
  365. ]
  366. ],
  367. 'user_registration.options.send_welcome_email' => [
  368. 'type' => 'toggle',
  369. 'label' => 'PLUGIN_LOGIN.SEND_WELCOME_EMAIL',
  370. 'help' => 'PLUGIN_LOGIN.SEND_WELCOME_EMAIL_HELP',
  371. 'highlight' => 1,
  372. 'options' => [
  373. 1 => 'PLUGIN_ADMIN.YES',
  374. 0 => 'PLUGIN_ADMIN.NO'
  375. ]
  376. ]
  377. ]
  378. ]
  379. ]
  380. ],
  381. 'Security' => [
  382. 'type' => 'tab',
  383. 'title' => 'PLUGIN_LOGIN.SECURITY_TAB',
  384. 'fields' => [
  385. 'max_pw_resets_count' => [
  386. 'type' => 'number',
  387. 'size' => 'x-small',
  388. 'label' => 'PLUGIN_LOGIN.MAX_RESETS_COUNT',
  389. 'help' => 'PLUGIN_LOGIN.MAX_RESETS_COUNT_HELP',
  390. 'append' => 'PLUGIN_LOGIN.RESETS',
  391. 'validate' => [
  392. 'type' => 'number',
  393. 'min' => 0
  394. ]
  395. ],
  396. 'max_pw_resets_interval' => [
  397. 'type' => 'number',
  398. 'size' => 'x-small',
  399. 'label' => 'PLUGIN_LOGIN.MAX_RESETS_INTERVAL',
  400. 'help' => 'PLUGIN_LOGIN.MAX_RESETS_INTERVAL_HELP',
  401. 'append' => 'PLUGIN_LOGIN.SECONDS',
  402. 'validate' => [
  403. 'type' => 'number',
  404. 'min' => 1
  405. ]
  406. ],
  407. 'max_login_count' => [
  408. 'type' => 'number',
  409. 'size' => 'x-small',
  410. 'label' => 'PLUGIN_LOGIN.MAX_LOGINS_COUNT',
  411. 'help' => 'PLUGIN_LOGIN.MAX_LOGINS_COUNT_HELP',
  412. 'append' => 'PLUGIN_LOGIN.ATTEMPTS',
  413. 'validate' => [
  414. 'type' => 'number',
  415. 'min' => 0
  416. ]
  417. ],
  418. 'max_login_interval' => [
  419. 'type' => 'number',
  420. 'size' => 'x-small',
  421. 'label' => 'PLUGIN_LOGIN.MAX_LOGINS_INTERVAL',
  422. 'help' => 'PLUGIN_LOGIN.MAX_LOGINS_INTERVAL_HELP',
  423. 'append' => 'PLUGIN_LOGIN.SECONDS',
  424. 'validate' => [
  425. 'type' => 'number',
  426. 'min' => 1
  427. ]
  428. ]
  429. ]
  430. ]
  431. ]
  432. ]
  433. ]
  434. ]
  435. ]
  436. ];