|
|
@ -37,7 +37,7 @@ export default (props) => { |
|
|
|
rules={[{ required: true, message: '请输入旧密码' }, |
|
|
|
{ max: 255, message: '旧密码长度不能大于255个字符' }, |
|
|
|
{ |
|
|
|
pattern: /^[a-z0-9A-Z_]{6,20}$/, message: '密码由6-20位字母、数字或_组成' |
|
|
|
pattern: /^[a-z0-9A-Z]{6,20}$/, message: '密码由6-20位字母或数字组成' |
|
|
|
}, |
|
|
|
]} |
|
|
|
name="oldpassword" |
|
|
@ -48,7 +48,7 @@ export default (props) => { |
|
|
|
rules={[{ required: true, message: '请输入新密码' }, |
|
|
|
{ max: 255, message: '新密码长度不能大于255个字符' }, |
|
|
|
{ |
|
|
|
pattern: /^[a-z0-9A-Z_]{6,20}$/, message: '密码由6-20位字母、数字或_组成' |
|
|
|
pattern: /^[a-z0-9A-Z]{6,20}$/, message: '密码由6-20位字母或数字组成' |
|
|
|
}, |
|
|
|
]} |
|
|
|
name="password" |
|
|
|