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

This commit is contained in:
Elias Luhr
2024-01-05 15:27:13 +01:00
parent 8f18c51cf2
commit 9aea9c76c0

View File

@ -106,7 +106,10 @@ class SocialNetworkAuthenticateService implements ServiceInterface
if (($user = $this->getUser($account)) instanceof User) {
$account->user_id = $user->id;
$account->save(false);
}
if ($account->save(false)) {
return null;
}
return $account;