82 lines
1.6 KiB
Markdown
82 lines
1.6 KiB
Markdown
|
---
|
||
|
title: Profile
|
||
|
cache_control: private, no-cache, must-revalidate
|
||
|
access:
|
||
|
site.login: true
|
||
|
|
||
|
form:
|
||
|
fields:
|
||
|
avatar_img:
|
||
|
type: avatar
|
||
|
|
||
|
username:
|
||
|
type: text
|
||
|
readonly: true
|
||
|
disabled: true
|
||
|
|
||
|
email:
|
||
|
type: email
|
||
|
placeholder: PLUGIN_LOGIN.ENTER_EMAIL
|
||
|
validate:
|
||
|
required: true
|
||
|
message: PLUGIN_LOGIN.EMAIL_VALIDATION_MESSAGE
|
||
|
|
||
|
fullname:
|
||
|
type: text
|
||
|
|
||
|
title:
|
||
|
type: text
|
||
|
|
||
|
password:
|
||
|
type: password
|
||
|
label: PLUGIN_LOGIN.ENTER_NEW_PASSWORD
|
||
|
validate:
|
||
|
message: PLUGIN_LOGIN.PASSWORD_VALIDATION_MESSAGE
|
||
|
config-pattern@: system.pwd_regex
|
||
|
|
||
|
twofa_check:
|
||
|
type: conditional
|
||
|
condition: config.plugins.login.twofa_enabled
|
||
|
|
||
|
fields:
|
||
|
|
||
|
twofa:
|
||
|
title: PLUGIN_LOGIN.2FA_TITLE
|
||
|
type: section
|
||
|
underline: true
|
||
|
|
||
|
twofa_enabled:
|
||
|
type: toggle
|
||
|
label: PLUGIN_LOGIN.2FA_ENABLED
|
||
|
classes: twofa-toggle
|
||
|
highlight: 1
|
||
|
default: 0
|
||
|
options:
|
||
|
1: GRAV.YES
|
||
|
0: GRAV.NO
|
||
|
validate:
|
||
|
type: bool
|
||
|
|
||
|
twofa_secret:
|
||
|
type: 2fa_secret
|
||
|
outerclasses: 'twofa-secret'
|
||
|
markdown: true
|
||
|
label: PLUGIN_LOGIN.2FA_SECRET
|
||
|
sublabel: PLUGIN_LOGIN.2FA_SECRET_HELP
|
||
|
|
||
|
|
||
|
buttons:
|
||
|
-
|
||
|
type: submit
|
||
|
value: PLUGIN_LOGIN.BTN_SUBMIT_PROFILE
|
||
|
-
|
||
|
type: reset
|
||
|
value: PLUGIN_LOGIN.BTN_RESET
|
||
|
|
||
|
process:
|
||
|
update_user: true
|
||
|
message: PLUGIN_LOGIN.PROFILE_UPDATED
|
||
|
---
|
||
|
|
||
|
# Profile
|