From 8066902212e074a9d0594dd905ae905507fc2837 Mon Sep 17 00:00:00 2001 From: Karson Date: Mon, 30 Sep 2019 22:38:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=B3=A8=E5=86=8C=E6=89=8B?= =?UTF-8?q?=E6=9C=BA=E9=AA=8C=E8=AF=81=E7=A0=81=E9=AA=8C=E8=AF=81=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5=E7=9A=84BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/index/controller/User.php | 3 +-- application/index/view/user/register.html | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/application/index/controller/User.php b/application/index/controller/User.php index b436a863..486f6216 100644 --- a/application/index/controller/User.php +++ b/application/index/controller/User.php @@ -86,7 +86,6 @@ class User extends Frontend $email = $this->request->post('email'); $mobile = $this->request->post('mobile', ''); $captcha = $this->request->post('captcha'); - $code = $this->request->post('code'); $token = $this->request->post('__token__'); $rule = [ 'username' => 'require|length:3,30', @@ -114,7 +113,7 @@ class User extends Frontend //'captcha' => $captcha, '__token__' => $token, ]; - $ret = Sms::check($mobile, $code, 'register'); + $ret = Sms::check($mobile, $captcha, 'register'); if (!$ret) { $this->error(__('Captcha is incorrect')); } diff --git a/application/index/view/user/register.html b/application/index/view/user/register.html index 5d209404..6c145c79 100644 --- a/application/index/view/user/register.html +++ b/application/index/view/user/register.html @@ -38,7 +38,7 @@