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,"验证码错误"]; }