From db2779c1626fc30c8dc8a17e02b9cdb248a29221 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=9E=97?= <904079904@qq.com> Date: Sat, 20 Jul 2019 18:13:03 +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 --- .../react/src/modules/user/FindPasswordComponent.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/public/react/src/modules/user/FindPasswordComponent.js b/public/react/src/modules/user/FindPasswordComponent.js index 18243ea4a..1617ae52d 100644 --- a/public/react/src/modules/user/FindPasswordComponent.js +++ b/public/react/src/modules/user/FindPasswordComponent.js @@ -213,10 +213,7 @@ class LoginRegisterComponent extends Component { }) return } - if (this.state.password !== this.state.passwords==="") { - this.openNotification(`两次输入的密码不一致`); - return - } + else if (this.state.password !==undefined&&this.state.password.length>0&&this.state.password.length<8){ this.setState({ Phonenumberisnotcosmmm:"密码不能少于8位", @@ -239,6 +236,13 @@ class LoginRegisterComponent extends Component { }) return } + if (this.state.password !== this.state.passwords) { + this.setState({ + Phonenumberisnotcosmmm:"两次输入的密码不一致", + Phonenumberisnotcosymmmm:"两次输入的密码不一致", + }) + return + } if (this.state.codes === undefined|| this.state.codes.length ===0 || this.state.codes === "") { this.setState({ Phonenumberisnotcosyzm:"验证码不能为空"