diff --git a/app/Http/Controllers/Auth/OAuthController.php b/app/Http/Controllers/Auth/OAuthController.php index ddc0deadf3..e5a1fbf47a 100644 --- a/app/Http/Controllers/Auth/OAuthController.php +++ b/app/Http/Controllers/Auth/OAuthController.php @@ -62,7 +62,7 @@ protected function callback(Request $request, string $driver): RedirectResponse ]; $user = $this->creationService->handle($userdata); - }else { + }else if (!$user) { // No user found - redirect to normal login return redirect()->route('auth.login'); }