From 46541e8f91519f6a63b52691ea31df1e2f3a6ffe Mon Sep 17 00:00:00 2001 From: vilson <545522390@qq.com> Date: Mon, 19 Aug 2019 10:42:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=80=9A=E8=BF=87=E6=89=8B?= =?UTF-8?q?=E6=9C=BA=E5=8F=B7=E7=A0=81=E7=99=BB=E5=BD=95=E6=97=B6=E9=AA=8C?= =?UTF-8?q?=E8=AF=81=E7=A0=81=E9=94=99=E8=AF=AF=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: vilson <545522390@qq.com> --- application/project/controller/Login.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/application/project/controller/Login.php b/application/project/controller/Login.php index e19c759..fa0dd58 100644 --- a/application/project/controller/Login.php +++ b/application/project/controller/Login.php @@ -76,12 +76,12 @@ class Login extends BasicApi // 用户信息验证 $mobile = $this->request->post('mobile', ''); if ($mobile) { - if (cache('captcha') != Request::param('captcha')) { + if (cache('captcha:' . $mobile) != Request::param('captcha')) { $this->error('验证码错误', 203); } - if (cache('captchaMobile') != $mobile) { - $this->error('手机号与验证码不匹配', 203); - } +// if (cache('captchaMobile') != $mobile) { +// $this->error('手机号与验证码不匹配', 203); +// } $member = Member::where(['mobile' => $mobile])->order('id asc')->find(); } else { $member = Member::where(['account' => $data['account']])->whereOr(['email' => $data['account']])->order('id asc')->find(); @@ -379,7 +379,7 @@ class Login extends BasicApi } $member->password = $data['password']; $member->save(); - $this->success('重置密码成功,请登录'); + $this->success('重置密码成功,请登录'); } /**