Skip to content

Commit f7d05e3

Browse files
robitmohsteinkel
authored andcommitted
Fix SocialAccount data
For save the new SocialAccount need to set the provider field (Validation error)
1 parent 6092ba2 commit f7d05e3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Model/Behavior/SocialBehavior.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,7 @@ protected function extractAccountData(array $data)
307307
$accountData['reference'] = $data['id'] ?? null;
308308
$accountData['avatar'] = $data['avatar'] ?? null;
309309
$accountData['link'] = $data['link'] ?? null;
310+
$accountData['provider'] = $data['provider'] ?? null;
310311

311312
if ($accountData['avatar'] ?? null) {
312313
$accountData['avatar'] = str_replace('normal', 'square', $accountData['avatar']);

0 commit comments

Comments
 (0)