实名认证+修改密码
This commit is contained in:
@@ -270,7 +270,7 @@ export default {
|
||||
},
|
||||
|
||||
validatePassword() {
|
||||
const pwdReg = /^(?=.*[A-Za-z])(?=.*\d).{8,}$/
|
||||
const pwdReg = /^(?=.*[A-Za-z])(?=.*\d).{6,}$/
|
||||
if (this.password && !pwdReg.test(this.password)) {
|
||||
this.setError(this.$t('register.errors.invalidPassword'))
|
||||
return false
|
||||
@@ -301,7 +301,7 @@ export default {
|
||||
|
||||
checkFormValidity() {
|
||||
const idReg = /^\d{5}[0-9X]$/
|
||||
const pwdReg = /^(?=.*[A-Za-z])(?=.*\d).{8,}$/
|
||||
const pwdReg = /^(?=.*[A-Za-z])(?=.*\d).{6,}$/
|
||||
const emailReg = /^[^\s@]+@[^\s@]+\.[^\s@]+$/
|
||||
|
||||
const isIdValid = this.idCardLast6 && idReg.test(this.idCardLast6)
|
||||
|
||||
Reference in New Issue
Block a user