mirror of
https://gitee.com/koogua/course-tencent-cloud.git
synced 2025-06-24 20:06:09 +08:00
去除后台登录页的captcha检查
This commit is contained in:
parent
4f18d78356
commit
1c0af6fa1e
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user