fix: binary profile picture can't be imported from LDAP

This commit is contained in:
Elias Schneider
2025-02-22 14:51:21 +01:00
parent 7446f853fc
commit 840a672fc3

View File

@@ -292,7 +292,7 @@ func (s *LdapService) SaveProfilePicture(userId string, pictureString string) er
} else {
// If the photo is a string, we assume that it's a binary string
reader = bytes.NewReader([]byte("pictureString"))
reader = bytes.NewReader([]byte(pictureString))
}
// Update the profile picture