Skip to content

Commit

Permalink
Merge pull request #195 from bjarn/fix/null-provider-id
Browse files Browse the repository at this point in the history
Update UserSocial query to fix issue with logging in if user has prov…
  • Loading branch information
Cannonb4ll authored Jan 14, 2023
2 parents 36b8a36 + 0f0a567 commit 2dbff71
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/Http/Controllers/Auth/LoginController.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ public function handleProviderCallback(Request $request, $provider = 'sso')
$userSocial = UserSocial::query()
->where('provider_id', $social->getId())
->where('provider', 'sso')
->whereNotNull('provider_id')
->first();

// If we already have a social user, login using that.
Expand Down

0 comments on commit 2dbff71

Please sign in to comment.