Skip to content

Commit

Permalink
fix case where user already had an account
Browse files Browse the repository at this point in the history
  • Loading branch information
EkiciLP committed Aug 14, 2024
1 parent e42182f commit e447cfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/Auth/OAuthController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
Expand Down

0 comments on commit e447cfa

Please sign in to comment.