We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 72bd471 commit da42fedCopy full SHA for da42fed
1 file changed
client/web/src/components/modals/ModifyPassword.tsx
@@ -45,6 +45,10 @@ const schema = createMetaFormSchema({
45
newPassword: metaFormFieldSchema
46
.string()
47
.min(6, t('密码不能低于6位'))
48
+ .matches(/[A-Z]/, '密码必须包含大写字母')
49
+ .matches(/[a-z]/, '密码必须包含小写字母')
50
+ .matches(/\d/, '密码必须包含数字')
51
+ .matches(/[`~!@#$%^&*()_+./,;':"*]/, '密码必须包含符号')
52
.required(t('密码不能为空')),
53
newPasswordRepeat: metaFormFieldSchema
54
0 commit comments