123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442 |
- <?php
- return [
- '@class' => 'Grav\\Common\\File\\CompiledYamlFile',
- 'filename' => '/mnt/data/Sites/hehe.net/user/plugins/login/blueprints.yaml',
- 'modified' => 1533014916,
- 'data' => [
- 'name' => 'Login',
- 'version' => '2.7.3',
- 'description' => 'Enables user authentication and login screen.',
- 'icon' => 'sign-in',
- 'author' => [
- 'name' => 'Team Grav',
- 'email' => 'devs@getgrav.org',
- 'url' => 'http://getgrav.org'
- ],
- 'homepage' => 'https://github.com/getgrav/grav-plugin-login',
- 'keywords' => 'login, authentication, admin, security',
- 'bugs' => 'https://github.com/getgrav/grav-plugin-login/issues',
- 'license' => 'MIT',
- 'dependencies' => [
- 0 => [
- 'name' => 'grav',
- 'version' => '>=1.4.4'
- ],
- 1 => [
- 'name' => 'form',
- 'version' => '>=2.13.4'
- ],
- 2 => [
- 'name' => 'email',
- 'version' => '>=2.7.0'
- ]
- ],
- 'form' => [
- 'validation' => 'loose',
- 'fields' => [
- 'tabs' => [
- 'type' => 'tabs',
- 'active' => 1,
- 'class' => 'subtle',
- 'fields' => [
- 'login' => [
- 'type' => 'tab',
- 'title' => 'PLUGIN_LOGIN.BTN_LOGIN',
- 'fields' => [
- 'enabled' => [
- 'type' => 'hidden',
- 'label' => 'PLUGIN_LOGIN.PLUGIN_STATUS',
- 'highlight' => 1,
- 'default' => 1,
- 'options' => [
- 1 => 'PLUGIN_ADMIN.ENABLED',
- 0 => 'PLUGIN_ADMIN.DISABLED'
- ],
- 'validate' => [
- 'type' => 'bool'
- ]
- ],
- 'built_in_css' => [
- 'type' => 'toggle',
- 'label' => 'PLUGIN_LOGIN.BUILTIN_CSS',
- 'highlight' => 1,
- 'default' => 1,
- 'help' => 'PLUGIN_LOGIN.BUILTIN_CSS_HELP',
- 'options' => [
- 1 => 'PLUGIN_ADMIN.ENABLED',
- 0 => 'PLUGIN_ADMIN.DISABLED'
- ],
- 'validate' => [
- 'type' => 'bool'
- ]
- ],
- 'route' => [
- 'type' => 'text',
- 'size' => 'medium',
- 'label' => 'PLUGIN_LOGIN.ROUTE',
- 'help' => 'PLUGIN_LOGIN.ROUTE_HELP',
- 'placeholder' => '/my-custom-login'
- ],
- 'redirect_after_login' => [
- 'type' => 'text',
- 'label' => 'PLUGIN_LOGIN.REDIRECT_AFTER_LOGIN',
- 'help' => 'PLUGIN_LOGIN.REDIRECT_AFTER_LOGIN_HELP',
- 'placeholder' => '/my-page'
- ],
- 'redirect_after_logout' => [
- 'type' => 'text',
- 'label' => 'PLUGIN_LOGIN.REDIRECT_AFTER_LOGOUT',
- 'help' => 'PLUGIN_LOGIN.REDIRECT_AFTER_LOGOUT_HELP',
- 'placeholder' => '/'
- ],
- 'route_forgot' => [
- 'type' => 'text',
- 'size' => 'medium',
- 'label' => 'PLUGIN_LOGIN.ROUTE_FORGOT',
- 'placeholder' => '/forgot_password'
- ],
- 'route_reset' => [
- 'type' => 'text',
- 'size' => 'medium',
- 'label' => 'PLUGIN_LOGIN.ROUTE_RESET',
- 'placeholder' => '/reset_password'
- ],
- 'route_profile' => [
- 'type' => 'text',
- 'size' => 'medium',
- 'label' => 'PLUGIN_LOGIN.ROUTE_PROFILE',
- 'placeholder' => '/user_profile'
- ],
- 'parent_acl' => [
- 'type' => 'toggle',
- 'label' => 'PLUGIN_LOGIN.USE_PARENT_ACL_LABEL',
- 'highlight' => 1,
- 'default' => 0,
- 'help' => 'PLUGIN_LOGIN.USE_PARENT_ACL_HELP',
- 'options' => [
- 1 => 'PLUGIN_ADMIN.ENABLED',
- 0 => 'PLUGIN_ADMIN.DISABLED'
- ],
- 'validate' => [
- 'type' => 'bool'
- ]
- ],
- 'dynamic_page_visibility' => [
- 'type' => 'toggle',
- 'label' => 'PLUGIN_LOGIN.DYNAMIC_VISIBILITY',
- 'highlight' => 0,
- 'default' => 0,
- 'help' => 'PLUGIN_LOGIN.DYNAMIC_VISIBILITY_HELP',
- 'options' => [
- 1 => 'PLUGIN_ADMIN.ENABLED',
- 0 => 'PLUGIN_ADMIN.DISABLED'
- ],
- 'validate' => [
- 'type' => 'bool'
- ]
- ],
- 'protect_protected_page_media' => [
- 'type' => 'toggle',
- 'label' => 'PLUGIN_LOGIN.PROTECT_PROTECTED_PAGE_MEDIA_LABEL',
- 'highlight' => 1,
- 'default' => 0,
- 'help' => 'PLUGIN_LOGIN.PROTECT_PROTECTED_PAGE_MEDIA_HELP',
- 'options' => [
- 1 => 'PLUGIN_ADMIN.ENABLED',
- 0 => 'PLUGIN_ADMIN.DISABLED'
- ],
- 'validate' => [
- 'type' => 'bool'
- ]
- ],
- 'routes' => [
- 'type' => 'section',
- 'title' => 'PLUGIN_LOGIN.ROUTES',
- 'fields' => [
- 'route_activate' => [
- 'type' => 'text',
- 'size' => 'medium',
- 'label' => 'PLUGIN_LOGIN.ROUTE_ACTIVATE',
- 'placeholder' => '/activate_user'
- ],
- 'route_forgot' => [
- 'type' => 'text',
- 'size' => 'medium',
- 'label' => 'PLUGIN_LOGIN.ROUTE_FORGOT',
- 'placeholder' => '/forgot_password'
- ],
- 'route_reset' => [
- 'type' => 'text',
- 'size' => 'medium',
- 'label' => 'PLUGIN_LOGIN.ROUTE_RESET',
- 'placeholder' => '/reset_password'
- ],
- 'route_profile' => [
- 'type' => 'text',
- 'size' => 'medium',
- 'label' => 'PLUGIN_LOGIN.ROUTE_PROFILE',
- 'placeholder' => '/user_profile'
- ],
- 'route_register' => [
- 'type' => 'text',
- 'size' => 'medium',
- 'label' => 'PLUGIN_LOGIN.ROUTE_REGISTER',
- 'help' => 'PLUGIN_LOGIN.ROUTE_REGISTER_HELP',
- 'placeholder' => '/register'
- ],
- 'user_registration.redirect_after_registration' => [
- 'type' => 'text',
- 'label' => 'PLUGIN_LOGIN.REDIRECT_AFTER_REGISTRATION',
- 'help' => 'PLUGIN_LOGIN.REDIRECT_AFTER_REGISTRATION_HELP',
- 'placeholder' => '/page-to-show-after-registration'
- ],
- 'user_registration.redirect_after_activation' => [
- 'type' => 'text',
- 'label' => 'PLUGIN_LOGIN.REDIRECT_AFTER_ACTIVATION',
- 'help' => 'PLUGIN_LOGIN.REDIRECT_AFTER_ACTIVATION_HELP',
- 'placeholder' => '/page-to-show-after-activation'
- ]
- ]
- ],
- 'rememberme' => [
- 'type' => 'section',
- 'title' => 'PLUGIN_LOGIN.REMEMBER_ME',
- 'fields' => [
- 'rememberme.enabled' => [
- 'type' => 'toggle',
- 'label' => 'PLUGIN_ADMIN.ENABLED',
- 'help' => 'PLUGIN_ADMIN.SESSION_ENABLED_HELP',
- 'highlight' => 1,
- 'options' => [
- 1 => 'PLUGIN_ADMIN.YES',
- 0 => 'PLUGIN_ADMIN.NO'
- ],
- 'validate' => [
- 'type' => 'bool'
- ]
- ],
- 'rememberme.timeout' => [
- 'type' => 'text',
- 'size' => 'small',
- 'default' => 604800,
- 'label' => 'PLUGIN_ADMIN.TIMEOUT',
- 'help' => 'PLUGIN_LOGIN.TIMEOUT_HELP',
- 'validate' => [
- 'type' => 'number',
- 'min' => 1
- ]
- ],
- 'rememberme.name' => [
- 'type' => 'text',
- 'size' => 'small',
- 'label' => 'PLUGIN_ADMIN.NAME',
- 'help' => 'PLUGIN_ADMIN.SESSION_NAME_HELP'
- ]
- ]
- ]
- ]
- ],
- 'registration' => [
- 'type' => 'tab',
- 'title' => 'PLUGIN_LOGIN.USER_REGISTRATION',
- 'fields' => [
- 'user_registration.enabled' => [
- 'type' => 'toggle',
- 'label' => 'PLUGIN_ADMIN.ENABLED',
- 'help' => 'PLUGIN_LOGIN.USER_REGISTRATION_ENABLED_HELP',
- 'highlight' => 0,
- 'options' => [
- 1 => 'PLUGIN_ADMIN.YES',
- 0 => 'PLUGIN_ADMIN.NO'
- ],
- 'validate' => [
- 'type' => 'bool'
- ]
- ],
- 'registration_fields' => [
- 'type' => 'section',
- 'title' => 'PLUGIN_LOGIN.REGISTRATION_FIELDS',
- 'fields' => [
- 'user_registration.fields' => [
- 'type' => 'array',
- 'value_only' => true,
- 'label' => 'PLUGIN_LOGIN.REGISTRATION_FIELDS',
- 'help' => 'PLUGIN_LOGIN.REGISTRATION_FIELDS_HELP',
- 'placeholder_key' => 'PLUGIN_LOGIN.REGISTRATION_FIELD_KEY',
- 'placeholder_value' => 'PLUGIN_LOGIN.ADDITIONAL_PARAM_VALUE'
- ],
- 'user_registration.default_values' => [
- 'type' => 'array',
- 'label' => 'PLUGIN_LOGIN.DEFAULT_VALUES',
- 'help' => 'PLUGIN_LOGIN.DEFAULT_VALUES_HELP',
- 'placeholder_key' => 'PLUGIN_LOGIN.ADDITIONAL_PARAM_KEY',
- 'placeholder_value' => 'PLUGIN_LOGIN.ADDITIONAL_PARAM_VALUE'
- ]
- ]
- ],
- 'access_levels' => [
- 'title' => 'PLUGIN_ADMIN.ACCESS_LEVELS',
- 'type' => 'section',
- 'security' => 'admin.super',
- 'fields' => [
- 'user_registration.groups' => [
- 'type' => 'selectize',
- 'size' => 'large',
- 'label' => 'PLUGIN_ADMIN.GROUPS',
- '@data-options' => '\\Grav\\User\\Groups::groups',
- 'classes' => 'fancy',
- 'help' => 'PLUGIN_LOGIN.GROUPS_HELP',
- 'validate' => [
- 'type' => 'commalist'
- ]
- ],
- 'user_registration.access.site' => [
- 'type' => 'array',
- 'label' => 'PLUGIN_ADMIN.SITE_ACCESS',
- 'help' => 'PLUGIN_LOGIN.SITE_ACCESS_HELP',
- 'multiple' => false,
- 'validate' => [
- 'type' => 'array'
- ]
- ]
- ]
- ],
- 'options' => [
- 'type' => 'section',
- 'title' => 'PLUGIN_LOGIN.OPTIONS',
- 'fields' => [
- 'user_registration.options.validate_password1_and_password2' => [
- 'type' => 'toggle',
- 'label' => 'PLUGIN_LOGIN.VALIDATE_PASSWORD1_AND_PASSWORD2',
- 'help' => 'PLUGIN_LOGIN.VALIDATE_PASSWORD1_AND_PASSWORD2_HELP',
- 'highlight' => 1,
- 'options' => [
- 1 => 'PLUGIN_ADMIN.YES',
- 0 => 'PLUGIN_ADMIN.NO'
- ],
- 'validate' => [
- 'type' => 'bool'
- ]
- ],
- 'user_registration.options.set_user_disabled' => [
- 'type' => 'toggle',
- 'label' => 'PLUGIN_LOGIN.SET_USER_DISABLED',
- 'help' => 'PLUGIN_LOGIN.SET_USER_DISABLED_HELP',
- 'highlight' => 1,
- 'options' => [
- 1 => 'PLUGIN_ADMIN.YES',
- 0 => 'PLUGIN_ADMIN.NO'
- ],
- 'validate' => [
- 'type' => 'bool'
- ]
- ],
- 'user_registration.options.login_after_registration' => [
- 'type' => 'toggle',
- 'label' => 'PLUGIN_LOGIN.LOGIN_AFTER_REGISTRATION',
- 'help' => 'PLUGIN_LOGIN.LOGIN_AFTER_REGISTRATION_HELP',
- 'highlight' => 0,
- 'options' => [
- 1 => 'PLUGIN_ADMIN.YES',
- 0 => 'PLUGIN_ADMIN.NO'
- ],
- 'validate' => [
- 'type' => 'bool'
- ]
- ],
- 'user_registration.options.send_activation_email' => [
- 'type' => 'toggle',
- 'label' => 'PLUGIN_LOGIN.SEND_ACTIVATION_EMAIL',
- 'help' => 'PLUGIN_LOGIN.SEND_ACTIVATION_EMAIL_HELP',
- 'highlight' => 1,
- 'options' => [
- 1 => 'PLUGIN_ADMIN.YES',
- 0 => 'PLUGIN_ADMIN.NO'
- ],
- 'validate' => [
- 'type' => 'bool'
- ]
- ],
- 'user_registration.options.send_notification_email' => [
- 'type' => 'toggle',
- 'label' => 'PLUGIN_LOGIN.SEND_NOTIFICATION_EMAIL',
- 'help' => 'PLUGIN_LOGIN.SEND_NOTIFICATION_EMAIL_HELP',
- 'highlight' => 1,
- 'options' => [
- 1 => 'PLUGIN_ADMIN.YES',
- 0 => 'PLUGIN_ADMIN.NO'
- ],
- 'validate' => [
- 'type' => 'bool'
- ]
- ],
- 'user_registration.options.send_welcome_email' => [
- 'type' => 'toggle',
- 'label' => 'PLUGIN_LOGIN.SEND_WELCOME_EMAIL',
- 'help' => 'PLUGIN_LOGIN.SEND_WELCOME_EMAIL_HELP',
- 'highlight' => 1,
- 'options' => [
- 1 => 'PLUGIN_ADMIN.YES',
- 0 => 'PLUGIN_ADMIN.NO'
- ]
- ]
- ]
- ]
- ]
- ],
- 'Security' => [
- 'type' => 'tab',
- 'title' => 'PLUGIN_LOGIN.SECURITY_TAB',
- 'fields' => [
- 'max_pw_resets_count' => [
- 'type' => 'number',
- 'size' => 'x-small',
- 'label' => 'PLUGIN_LOGIN.MAX_RESETS_COUNT',
- 'help' => 'PLUGIN_LOGIN.MAX_RESETS_COUNT_HELP',
- 'append' => 'PLUGIN_LOGIN.RESETS',
- 'validate' => [
- 'type' => 'number',
- 'min' => 0
- ]
- ],
- 'max_pw_resets_interval' => [
- 'type' => 'number',
- 'size' => 'x-small',
- 'label' => 'PLUGIN_LOGIN.MAX_RESETS_INTERVAL',
- 'help' => 'PLUGIN_LOGIN.MAX_RESETS_INTERVAL_HELP',
- 'append' => 'PLUGIN_LOGIN.SECONDS',
- 'validate' => [
- 'type' => 'number',
- 'min' => 1
- ]
- ],
- 'max_login_count' => [
- 'type' => 'number',
- 'size' => 'x-small',
- 'label' => 'PLUGIN_LOGIN.MAX_LOGINS_COUNT',
- 'help' => 'PLUGIN_LOGIN.MAX_LOGINS_COUNT_HELP',
- 'append' => 'PLUGIN_LOGIN.ATTEMPTS',
- 'validate' => [
- 'type' => 'number',
- 'min' => 0
- ]
- ],
- 'max_login_interval' => [
- 'type' => 'number',
- 'size' => 'x-small',
- 'label' => 'PLUGIN_LOGIN.MAX_LOGINS_INTERVAL',
- 'help' => 'PLUGIN_LOGIN.MAX_LOGINS_INTERVAL_HELP',
- 'append' => 'PLUGIN_LOGIN.SECONDS',
- 'validate' => [
- 'type' => 'number',
- 'min' => 1
- ]
- ]
- ]
- ]
- ]
- ]
- ]
- ]
- ]
- ];
|