From e447cfa355efc22fc24af6c71dc790275e6da23b Mon Sep 17 00:00:00 2001 From: Tueem <72763011+EkiciLP@users.noreply.github.com> Date: Mon, 12 Aug 2024 17:52:57 +0200 Subject: [PATCH] fix case where user already had an account --- app/Http/Controllers/Auth/OAuthController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'); }