diff --git a/application/src/main/resources/extensions/system-setting.yaml b/application/src/main/resources/extensions/system-setting.yaml index 4cda62b05..eaf441484 100644 --- a/application/src/main/resources/extensions/system-setting.yaml +++ b/application/src/main/resources/extensions/system-setting.yaml @@ -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