|
|
@ -107,8 +107,9 @@ const UserManager = (props: any) => {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
"rules": [{ required: true }, {
|
|
|
|
"rules": [{ required: true }, {
|
|
|
|
pattern: '^[A-Za-z0-9]+$',
|
|
|
|
pattern: '^[A-Za-z0-9@!-]+$',
|
|
|
|
message: '密码只能由英文字母和数字组成'
|
|
|
|
// pattern: /^(?=.*[0-9])(?=.*[!@#$%^&*])(?=.*[a-z])(?=.*[A-Z]).{8,}$/,
|
|
|
|
|
|
|
|
message: '密码只能包含数字字母和@!-'
|
|
|
|
}],
|
|
|
|
}],
|
|
|
|
"inputComponent": <Input.Password iconRender={visible => (visible ? <EyeTwoTone /> : <EyeInvisibleOutlined />)}
|
|
|
|
"inputComponent": <Input.Password iconRender={visible => (visible ? <EyeTwoTone /> : <EyeInvisibleOutlined />)}
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|