diff --git a/public/react/src/modules/user/FindPasswordComponent.js b/public/react/src/modules/user/FindPasswordComponent.js index d1087984d..105642037 100644 --- a/public/react/src/modules/user/FindPasswordComponent.js +++ b/public/react/src/modules/user/FindPasswordComponent.js @@ -193,14 +193,25 @@ class LoginRegisterComponent extends Component { this.openNotification(`两次输入的密码不一致`); return } + else if (this.state.password !==undefined ||this.state.password.length>0&&this.state.password.length<8){ + this.setState({ + Phonenumberisnotcosmmm:"密码不能少于8位", + }) + return + } else if (this.state.password !==undefined ||this.state.password.length>0&&this.state.password.length>16){ + this.setState({ + Phonenumberisnotcosmmm:"密码不能超过16位", + }) + return + } else if (this.state.passwords !==undefined ||this.state.passwords.length>0&&this.state.passwords.length<8){ this.setState({ - Phonenumberisnotcosymmm:"密码不能少于8位", + Phonenumberisnotcosymmmm:"二次密码不能少于8位", }) return } else if (this.state.passwords !==undefined ||this.state.passwords.length>0&&this.state.passwords.length>16){ this.setState({ - Phonenumberisnotcosymmm:"密码不能超过16位", + Phonenumberisnotcosymmmm:"二次密码不能超过16位", }) return }