Skip to content

Commit d293264

Browse files
extend userbackend for avatar
Signed-off-by: Rick Bruyninckx <[email protected]>
1 parent 879714b commit d293264

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/UserBackend.php

+6
Original file line numberDiff line numberDiff line change
@@ -511,6 +511,12 @@ private function formatUserData($attributes) {
511511
$result['formatted']['mfaVerified'] = null;
512512
}
513513

514+
try {
515+
$result['formatted']['avatar'] = $this->getAttributeValue('saml-attribute-mapping-avatar_mapping', $attributes);
516+
} catch (\InvalidArgumentException $e) {
517+
$result['formatted']['avatar'] = null;
518+
}
519+
514520
$result['formatted']['uid'] = $this->userData->getEffectiveUid();
515521

516522
return $result;

0 commit comments

Comments
 (0)