"Fossies" - the Fresh Open Source Software Archive

Member "grav/system/blueprints/user/account.yaml" (8 Jun 2020, 3478 Bytes) of package /linux/www/grav-v1.6.26.zip:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Ansible YAML source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 title: Account
    2 form:
    3     validation: loose
    4 
    5     fields:
    6 
    7         info:
    8             type: userinfo
    9             size: large
   10 
   11         avatar:
   12             type: file
   13             size: large
   14             destination: 'user://accounts/avatars'
   15             multiple: false
   16             random_name: true
   17 
   18         content:
   19             type: section
   20             title: PLUGIN_ADMIN.ACCOUNT
   21             underline: true
   22 
   23         username:
   24             type: text
   25             size: large
   26             label: PLUGIN_ADMIN.USERNAME
   27             disabled: true
   28             readonly: true
   29 
   30         email:
   31             type: email
   32             size: large
   33             label: PLUGIN_ADMIN.EMAIL
   34             validate:
   35               type: email
   36               message: PLUGIN_ADMIN.EMAIL_VALIDATION_MESSAGE
   37               required: true
   38 
   39         password:
   40             type: password
   41             size: large
   42             label: PLUGIN_ADMIN.PASSWORD
   43             autocomplete: new-password
   44             validate:
   45               required: false
   46               message: PLUGIN_ADMIN.PASSWORD_VALIDATION_MESSAGE
   47               config-pattern@: system.pwd_regex
   48 
   49         fullname:
   50             type: text
   51             size: large
   52             label: PLUGIN_ADMIN.FULL_NAME
   53             validate:
   54               required: true
   55 
   56         title:
   57             type: text
   58             size: large
   59             label: PLUGIN_ADMIN.TITLE
   60 
   61         language:
   62             type: select
   63             label: PLUGIN_ADMIN.LANGUAGE
   64             size: medium
   65             classes: fancy
   66             data-options@: '\Grav\Plugin\Admin\Admin::adminLanguages'
   67             default: 'en'
   68             help: PLUGIN_ADMIN.LANGUAGE_HELP
   69 
   70         twofa_check:
   71             type: conditional
   72             condition: config.plugins.admin.twofa_enabled
   73 
   74             fields:
   75 
   76                 twofa:
   77                     title: PLUGIN_ADMIN.2FA_TITLE
   78                     type: section
   79                     underline: true
   80 
   81                 twofa_enabled:
   82                     type: toggle
   83                     label: PLUGIN_ADMIN.2FA_ENABLED
   84                     classes: twofa-toggle
   85                     highlight: 1
   86                     default: 0
   87                     options:
   88                       1: PLUGIN_ADMIN.YES
   89                       0: PLUGIN_ADMIN.NO
   90                     validate:
   91                       type: bool
   92 
   93 
   94                 twofa_secret:
   95                     type: 2fa_secret
   96                     outerclasses: 'twofa-secret'
   97                     markdown: true
   98                     label: PLUGIN_ADMIN.2FA_SECRET
   99                     sublabel: PLUGIN_ADMIN.2FA_SECRET_HELP
  100 
  101 
  102         security:
  103             security@: admin.super
  104             title: PLUGIN_ADMIN.ACCESS_LEVELS
  105             type: section
  106             underline: true
  107 
  108             fields:
  109                 groups:
  110                     security@: admin.super
  111                     type: select
  112                     multiple: true
  113                     size: large
  114                     label: PLUGIN_ADMIN.GROUPS
  115                     data-options@: '\Grav\Common\User\Group::groupNames'
  116                     classes: fancy
  117                     help: PLUGIN_ADMIN.GROUPS_HELP
  118                     validate:
  119                         type: commalist
  120 
  121                 access:
  122                     security@: admin.super
  123                     type: permissions
  124                     label: PLUGIN_ADMIN.PERMISSIONS
  125                     ignore_empty: true
  126                     validate:
  127                         type: array