Skip to content

Commit 246873d

Browse files
committed
Plugin: AzureActiveDirectory #fix user picture deletion on update user on login - refs BT#23018
1 parent 6c8c24b commit 246873d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

plugin/azure_active_directory/src/AzureActiveDirectory.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,8 @@ public function registerUser(array $azureUserInfo)
312312
$extra,
313313
] = $this->formatUserData($azureUserInfo);
314314

315+
$userInfo = api_get_user_info($userId);
316+
315317
$userId = UserManager::update_user(
316318
$userId,
317319
$firstNme,
@@ -323,7 +325,7 @@ public function registerUser(array $azureUserInfo)
323325
STUDENT,
324326
null,
325327
$phone,
326-
null,
328+
$userInfo['picture_uri'],
327329
null,
328330
$active,
329331
null,

0 commit comments

Comments
 (0)