fixed password length 6-digit limit

This commit is contained in:
jianghang.loujh
2023-09-02 11:12:09 +08:00
parent 2786e06ccf
commit a216b55010
3 changed files with 6 additions and 6 deletions

View File

@@ -66,8 +66,8 @@ export default {
}
}
const validatePassword = (rule, value, callback) => {
if (value.length < 6) {
callback(new Error('The password can not be less than 6 digits'))
if (value.length < 5) {
callback(new Error('The password can not be less than 5 digits'))
} else {
callback()
}