Commit 4afb5f94 authored by 崔佳豪's avatar 崔佳豪

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

parent ecf253da
Pipeline #55603 passed with stages
......@@ -101,7 +101,7 @@ const ValidContainer = props => {
},
{
pattern: /^(?![0-9]+$)(?![a-zA-Z]+$)[a-zA-Z0-9_]{8,16}$/,
message: '密码字符长度为8-16个数字和字符',
message: '密码需为8-16个数字、字符和下划线',
},
({ getFieldValue }) => ({
validator(rule, value) {
......@@ -128,7 +128,7 @@ const ValidContainer = props => {
({ getFieldValue }) => ({
validator(rule, value) {
if (!/^(?![0-9]+$)(?![a-zA-Z]+$)[a-zA-Z0-9_]{8,16}$/.test(value))
return Promise.reject('密码字符长度为8-16个数字和字符');
return Promise.reject('密码需为8-16个数字、字符和下划线');
if (value === `${infoPre}${props?.global?.userInfo?.loginName ?? info}` || value === 'panda666')
return Promise.reject('密码规则不允许');
if (!value || getFieldValue('newPwd') === value) {
......
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