|
|
@ -663,7 +663,7 @@ export default { |
|
|
|
if(!this.passwordForm.password) return this.$message.warning('请输入原密码') |
|
|
|
if(!this.passwordForm.password) return this.$message.warning('请输入原密码') |
|
|
|
if(!this.passwordForm.newPassword) return this.$message.warning('请输入新密码') |
|
|
|
if(!this.passwordForm.newPassword) return this.$message.warning('请输入新密码') |
|
|
|
if(!this.passwordForm.reNewPassword) return this.$message.warning('请确认新密码') |
|
|
|
if(!this.passwordForm.reNewPassword) return this.$message.warning('请确认新密码') |
|
|
|
if(this.passwordForm.newPassword.length < 6 || this.passwordForm.reNewPassword.length < 6) return this.$message.warning('请输入6位数以上的密码') |
|
|
|
if(!/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)[a-zA-Z\d]{6,}$/.test(this.passwordForm.newPassword)) return this.$message.warning('密码必须包含数字、大小写字母,且至少六位') |
|
|
|
if(this.passwordForm.newPassword !== this.passwordForm.reNewPassword) return this.$message.warning('输入的新密码不一致,请重新确认') |
|
|
|
if(this.passwordForm.newPassword !== this.passwordForm.reNewPassword) return this.$message.warning('输入的新密码不一致,请重新确认') |
|
|
|
if(this.passwordForm.password === this.passwordForm.newPassword) return this.$message.warning('原密码跟新密码不能一致') |
|
|
|
if(this.passwordForm.password === this.passwordForm.newPassword) return this.$message.warning('原密码跟新密码不能一致') |
|
|
|
|
|
|
|
|
|
|
|