From 6ae2f8ff6a3b2572067a85223114c362ed3f7ab4 Mon Sep 17 00:00:00 2001 From: Tueem <72763011+EkiciLP@users.noreply.github.com> Date: Wed, 14 Aug 2024 13:59:04 +0200 Subject: [PATCH] replace else-if --- app/Http/Controllers/Auth/OAuthController.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/Auth/OAuthController.php b/app/Http/Controllers/Auth/OAuthController.php index e5a1fbf47a..314db3cae1 100644 --- a/app/Http/Controllers/Auth/OAuthController.php +++ b/app/Http/Controllers/Auth/OAuthController.php @@ -62,7 +62,9 @@ protected function callback(Request $request, string $driver): RedirectResponse ]; $user = $this->creationService->handle($userdata); - }else if (!$user) { + } + + if (!$user) { // No user found - redirect to normal login return redirect()->route('auth.login'); }