Commit f6b639cf authored by 皮倩雯's avatar 皮倩雯

fix: '弱密码不允许提交'

parent fd0116da
Pipeline #83876 waiting for manual action with stages
......@@ -98,6 +98,10 @@ const AddUserModal = props => {
// 提交-添加用户
const submitAddUser = () => {
if (passwordLevel === '弱') {
message.warning('请提高密码强度!');
return;
}
const loginName = addUserForm.getFieldValue('loginName') || '';
const userName = addUserForm.getFieldValue('userName') || '';
const password = addUserForm.getFieldValue('password') || '';
......@@ -300,7 +304,7 @@ const AddUserModal = props => {
]}
>
<Input.Password
placeholder="请输入账号密码(6~16位)"
placeholder={rules ? rules.tip : '请输入账号密码(6~16位),必须包含数字与字母'}
maxLength="16"
onCopy={e => {
e.preventDefault();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment