mirror of https://github.com/halo-dev/halo
feat: hide registration-related options when allowRegistration is disabled (#5690)
#### What type of PR is this? /kind improvement /area core #### Which issue(s) this PR fixes: Fixes #5688 ```release-note 当未开启允许注册选项时,隐藏注册相关的其他选项。 ```pull/5697/head
parent
817963c15e
commit
0ebb959c45
|
@ -97,16 +97,21 @@ spec:
|
|||
formSchema:
|
||||
- $formkit: checkbox
|
||||
name: allowRegistration
|
||||
id: allowRegistration
|
||||
key: allowRegistration
|
||||
label: "开放注册"
|
||||
value: false
|
||||
- $formkit: checkbox
|
||||
name: mustVerifyEmailOnRegistration
|
||||
label: "注册需验证邮箱"
|
||||
if: "$get(allowRegistration).value === true"
|
||||
help: "需要确保已经正确配置邮件通知器"
|
||||
value: false
|
||||
- $formkit: roleSelect
|
||||
name: defaultRole
|
||||
label: "默认角色"
|
||||
validation: 'required'
|
||||
if: "$get(allowRegistration).value === true"
|
||||
help: 用户注册之后默认为用户分配的角色
|
||||
- $formkit: attachmentPolicySelect
|
||||
name: avatarPolicy
|
||||
|
|
Loading…
Reference in New Issue