Skip to content

Commit

Permalink
Update Azure ADB2C user email field (#1180)
Browse files Browse the repository at this point in the history
  • Loading branch information
vincent-paqt authored Apr 16, 2024
1 parent 8d73347 commit 13106de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ protected function mapUserToObject(array $user)
'id' => $user['sub'],
'nickname' => $user['name'],
'name' => $user['name'],
'email' => $user['emails'][0],
'email' => $user['emails'][0] ?? $user['email'] ?? null,
]);
}

Expand Down

0 comments on commit 13106de

Please sign in to comment.