Browse Source
update web_src/src/components/dialog/changePassword.vue.
pull/375/head
lanss
3 years ago
committed by
Gitee
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with
4 additions and
1 deletions
-
web_src/src/components/dialog/changePassword.vue
|
|
@ -75,7 +75,10 @@ export default { |
|
|
|
isLoging: false, |
|
|
|
rules: { |
|
|
|
oldPassword: [{ required: true, validator: validatePass0, trigger: "blur" }], |
|
|
|
newPassword: [{ required: true, validator: validatePass1, trigger: "blur" }], |
|
|
|
newPassword: [{ required: true, validator: validatePass1, trigger: "blur" }, { |
|
|
|
pattern: /^(?=.*[a-zA-Z])(?=.*\d)(?=.*[~!@#$%^&*()_+`\-={}:";'<>?,.\/]).{8,20}$/, |
|
|
|
message: "密码长度在8-20位之间,由字母+数字+特殊字符组成", |
|
|
|
},], |
|
|
|
confirmPassword: [{ required: true, validator: validatePass2, trigger: "blur" }], |
|
|
|
}, |
|
|
|
}; |
|
|
|