a8bc7b119b9f22ce7783b73a7cc8bca0.yaml.php 25 KB

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