Always save the user account when created via the social network authenticate service
This commit is contained in:
@ -107,8 +107,8 @@ class SocialNetworkAuthenticateService implements ServiceInterface
|
|||||||
if (($user = $this->getUser($account)) instanceof User) {
|
if (($user = $this->getUser($account)) instanceof User) {
|
||||||
$account->user_id = $user->id;
|
$account->user_id = $user->id;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($account->save(false)) {
|
if (!$account->save(false)) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user