实名认证+修改密码

This commit is contained in:
小林
2025-08-11 17:39:54 +08:00
parent b252caec77
commit 95216e2464
9 changed files with 1140 additions and 332 deletions

View File

@@ -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)