Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
iamgergo committed Mar 30, 2024
1 parent 945f667 commit 5c80eab
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Http/Controllers/Auth/LoginController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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')],
]);
}
Expand Down

0 comments on commit 5c80eab

Please sign in to comment.