From 5c80eabb72a0b59f6871b6b1b6d9f7133b5c98af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=2E=20Nagy=20Gerg=C5=91?= Date: Sat, 30 Mar 2024 08:22:35 +0100 Subject: [PATCH] wip --- src/Http/Controllers/Auth/LoginController.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Http/Controllers/Auth/LoginController.php b/src/Http/Controllers/Auth/LoginController.php index 2d465c15..bc64a806 100644 --- a/src/Http/Controllers/Auth/LoginController.php +++ b/src/Http/Controllers/Auth/LoginController.php @@ -49,9 +49,7 @@ public function login(Request $request): RedirectResponse } if (! Auth::guard()->user()->hasVerifiedEmail()) { - $this->logout($request); - - throw ValidationException::withMessages([ + return $this->logout($request)->withErrors([ 'email' => [__('auth.unverified')], ]); }