From 1c0af6fa1ee74e5170528553f60c8a0b60b46dbe Mon Sep 17 00:00:00 2001 From: xiaochong0302 Date: Mon, 10 Jul 2023 17:40:18 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4=E5=90=8E=E5=8F=B0=E7=99=BB?= =?UTF-8?q?=E5=BD=95=E9=A1=B5=E7=9A=84captcha=E6=A3=80=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/Admin/Services/Session.php | 13 ------------- 1 file changed, 13 deletions(-) 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);