Commit ecf253da authored by 崔佳豪's avatar 崔佳豪

fix: 修改默认密码非转义字符

parent 2431d2f8
......@@ -100,7 +100,7 @@ const ValidContainer = props => {
message: '请输入新密码',
},
{
pattern: /^(?![0-9]+$)(?![a-zA-Z]+$)[a-zA-Z0-9!@#$%^&*_]{8,16}$/,
pattern: /^(?![0-9]+$)(?![a-zA-Z]+$)[a-zA-Z0-9_]{8,16}$/,
message: '密码字符长度为8-16个数字和字符',
},
({ getFieldValue }) => ({
......@@ -127,7 +127,7 @@ const ValidContainer = props => {
},
({ getFieldValue }) => ({
validator(rule, value) {
if (!/^(?![0-9]+$)(?![a-zA-Z]+$)[a-zA-Z0-9!@#$%^&*_]{8,16}$/.test(value))
if (!/^(?![0-9]+$)(?![a-zA-Z]+$)[a-zA-Z0-9_]{8,16}$/.test(value))
return Promise.reject('密码字符长度为8-16个数字和字符');
if (value === `${infoPre}${props?.global?.userInfo?.loginName ?? info}` || value === 'panda666')
return Promise.reject('密码规则不允许');
......
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