Correcion loginController v2
This commit is contained in:
parent
e62d40a220
commit
3b2a798afe
@ -38,7 +38,7 @@ public function handleProviderCallback($provider)
|
||||
return response()->json(['error' => 'Credenciales de google invalidas.'], 422);
|
||||
}
|
||||
|
||||
$user = User::where('email', $userProvider->getEmail())->first();
|
||||
$user = $user = User::where("email", "=", $userProvider->email)->first();
|
||||
|
||||
if (isset($user)) {
|
||||
$userCreated = User::firstOrCreate(
|
||||
|
Loading…
Reference in New Issue
Block a user