Browse Source

会员、管理员登陆次数bugfix

zhangl 1 năm trước cách đây
mục cha
commit
a62c7eadcc

+ 2 - 0
backendApi/modules/v1/models/LoginForm.php

@@ -176,6 +176,8 @@ class LoginForm extends Model {
                 throw new Exception(self::ERROR_IS_MODIFY_PASSWORD);
                 throw new Exception(self::ERROR_IS_MODIFY_PASSWORD);
             }
             }
 
 
+            \Yii::$app->redis->del('FAIL_NUMS:' . $this->adminName);
+
             $this->_updateSuccessTimes();
             $this->_updateSuccessTimes();
             $transaction->commit();
             $transaction->commit();
             AdminLoginLogger::success($this->_user, $this->password);
             AdminLoginLogger::success($this->_user, $this->password);