开启密码编辑可以增加特殊字符

master
wuzuowei 4 months ago
parent 4c92545972
commit c4f57cda6d

@ -75,8 +75,13 @@ const daye460 = {
pathRewrite: { '^/api/oauth/': '' },
changeOrigin: true,
},
// '/api': {
// target: 'http://172.15.89.222:80/api/',
// pathRewrite: { '^/api': '' },
// changeOrigin: true,
// },
'/api': {
target: 'http://172.15.89.222:80/api/',
target: 'https://craft.dayesteel.com.cn/api/',
pathRewrite: { '^/api': '' },
changeOrigin: true,
},

@ -184,8 +184,10 @@ const ManagementAccountEditor : React.FC<IManagementAccountEditor> = (props) =>
}
},
"rules": [{
pattern: '^[A-Za-z0-9]+$',
message: '密码只能由英文字母和数字组成'
// pattern: '^[A-Za-z0-9]+$',
pattern: '^[A-Za-z0-9@!-]+$',
// message: '密码只能由英文字母和数字组成'
message: '密码只能包含数字字母和@!-'
}],
"inputComponent": <Input.Password iconRender={visible => (visible ? <EyeTwoTone /> : <EyeInvisibleOutlined />)}
/>

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

Loading…
Cancel
Save