diff --git a/app/Http/Admin/Services/Session.php b/app/Http/Admin/Services/Session.php index 53978d19..232ca195 100644 --- a/app/Http/Admin/Services/Session.php +++ b/app/Http/Admin/Services/Session.php @@ -9,7 +9,6 @@ namespace App\Http\Admin\Services; use App\Services\Auth\Admin as AdminAuth; use App\Validators\Account as AccountValidator; -use App\Validators\Captcha as CaptchaValidator; class Session extends Service { @@ -34,18 +33,6 @@ class Session extends Service $validator->checkIfAllowLogin($user); - $captcha = $this->getSettings('captcha'); - - /** - * 验证码是一次性的,放到最后检查,减少第三方调用 - */ - if ($captcha['enabled'] == 1) { - - $validator = new CaptchaValidator(); - - $validator->checkCode($post['captcha']['ticket'], $post['captcha']['rand']); - } - $this->auth->saveAuthInfo($user); $this->eventsManager->fire('Account:afterLogin', $this, $user);