mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-08-07 23:03:00 +03:00
OIDC: Added testing coverage for picture fetching
This commit is contained in:
@@ -222,6 +222,8 @@ class OidcService
|
||||
throw new OidcException($exception->getMessage());
|
||||
}
|
||||
|
||||
// TODO - Update this (and tests and config option comments) to actually align with LDAP system
|
||||
// which syncs whenever on login or registration, where there's no existing avatar.
|
||||
if ($this->config()['fetch_avatar'] && $user->wasRecentlyCreated && $userDetails->picture) {
|
||||
$this->userAvatars->assignToUserFromUrl($user, $userDetails->picture);
|
||||
}
|
||||
|
Reference in New Issue
Block a user