diff --git a/app/Http/Controllers/AuthController.php b/app/Http/Controllers/AuthController.php index aa78ffd..3709f22 100644 --- a/app/Http/Controllers/AuthController.php +++ b/app/Http/Controllers/AuthController.php @@ -21,13 +21,13 @@ class AuthController extends Controller $request->validate([ 'username' => 'required', 'password' => 'required', - 'captcha_key' => 'required', - 'captcha_value' => 'required', + // 'captcha_key' => 'required', + // 'captcha_value' => 'required', ]); - if (! $captchaService->testPhrase($request->input('captcha_key'), $request->input('captcha_value'))) { - return $this->error('验证码错误'); - } + // if (! $captchaService->testPhrase($request->input('captcha_key'), $request->input('captcha_value'))) { + // return $this->error('验证码错误'); + // } $username = $request->input('username');