From 3b7afcae8522d01cdd09b626951451555b81b603 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=9E=97?= <904079904@qq.com> Date: Fri, 19 Jul 2019 22:43:37 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/modules/user/FindPasswordComponent.js | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) 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 }