From b6c1382e73ee95ce371b18380145bb49a8959e1f Mon Sep 17 00:00:00 2001 From: HFO4 <912394456@qq.com> Date: Mon, 5 Feb 2018 16:28:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=9F=90=E4=BA=9B=E6=83=85?= =?UTF-8?q?=E5=86=B5=E4=B8=8B=E9=AA=8C=E8=AF=81=E7=A0=81=E6=97=A0=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/index/model/User.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/index/model/User.php b/application/index/model/User.php index 7497cbf0..27d1da33 100644 --- a/application/index/model/User.php +++ b/application/index/model/User.php @@ -87,7 +87,7 @@ class User extends Model{ * @return [type] [description] */ static function register($userEmail,$userPass,$captchaCode){ - if(Option::getValue("login_captcha")=="1"){ + if(Option::getValue("reg_captcha")=="1"){ if(!self::checkCaptcha($captchaCode)){ return [false,"验证码错误"]; } @@ -193,7 +193,7 @@ class User extends Model{ } static function findPwd($email,$captchaCode){ - if(Option::getValue("login_captcha")=="1"){ + if(Option::getValue("forget_captcha")=="1"){ if(!self::checkCaptcha($captchaCode)){ return [false,"验证码错误"]; }