From 7036a56c7cffcdaa60ad03c3e272f79757adc289 Mon Sep 17 00:00:00 2001 From: wanghongjun <1445693971@qq.com> Date: Wed, 29 Apr 2026 14:52:40 +0800 Subject: [PATCH] =?UTF-8?q?=E7=8A=B6=E6=80=81=E8=BF=94=E5=9B=9E=E5=80=BC?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=BA=E4=B8=9A=E5=8A=A1=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/Controllers/Admin/AuthController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/Admin/AuthController.php b/app/Http/Controllers/Admin/AuthController.php index 8a770e4..e83c785 100644 --- a/app/Http/Controllers/Admin/AuthController.php +++ b/app/Http/Controllers/Admin/AuthController.php @@ -62,11 +62,11 @@ class AuthController extends Controller $user = AdminUsers::where('username', $request->username)->first(); if (!$user || !Hash::check($request->password, $user->password)) { - throw new CustomException(__('validation.auth.u_p_error'), 401); + throw new CustomException(__('validation.auth.u_p_error'), 400); } if ($user->status !== 1) { - throw new CustomException(__('validation.auth.u_disabled'), 403); + throw new CustomException(__('validation.auth.u_disabled'), 400); } // 删除旧token