Always save the user account when created via the social network authenticate service

This commit is contained in:
Elias Luhr
2024-01-05 15:39:19 +01:00
parent 9aea9c76c0
commit e5d5ea426d

View File

@ -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;
} }