Fixes to make SO login work. GitHub now works also (was a FF plugin bug)

This commit is contained in:
2018-07-10 22:57:50 +02:00
parent d74b76da3e
commit be3164e997
10 changed files with 53 additions and 15 deletions
@@ -25,7 +25,7 @@ class EloquentIdentityStore implements IdentityStore
{
$first = User::where('email', $providerUser->email)->first();
if($first->email) return $first;
if($first && $first->email) return $first;
return null;
}