提交 b6c1382e 编写于 作者: H HFO4

修复某些情况下验证码无效

上级 02ce1117
...@@ -87,7 +87,7 @@ class User extends Model{ ...@@ -87,7 +87,7 @@ class User extends Model{
* @return [type] [description] * @return [type] [description]
*/ */
static function register($userEmail,$userPass,$captchaCode){ static function register($userEmail,$userPass,$captchaCode){
if(Option::getValue("login_captcha")=="1"){ if(Option::getValue("reg_captcha")=="1"){
if(!self::checkCaptcha($captchaCode)){ if(!self::checkCaptcha($captchaCode)){
return [false,"验证码错误"]; return [false,"验证码错误"];
} }
...@@ -193,7 +193,7 @@ class User extends Model{ ...@@ -193,7 +193,7 @@ class User extends Model{
} }
static function findPwd($email,$captchaCode){ static function findPwd($email,$captchaCode){
if(Option::getValue("login_captcha")=="1"){ if(Option::getValue("forget_captcha")=="1"){
if(!self::checkCaptcha($captchaCode)){ if(!self::checkCaptcha($captchaCode)){
return [false,"验证码错误"]; return [false,"验证码错误"];
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册