Skip to content

Commit

Permalink
replace else-if
Browse files Browse the repository at this point in the history
  • Loading branch information
EkiciLP committed Aug 14, 2024
1 parent e447cfa commit 6ae2f8f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/Http/Controllers/Auth/OAuthController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
Expand Down

0 comments on commit 6ae2f8f

Please sign in to comment.