mirror of
https://github.com/pocket-id/pocket-id.git
synced 2025-12-20 17:25:43 +03:00
fix: binary profile picture can't be imported from LDAP
This commit is contained in:
@@ -292,7 +292,7 @@ func (s *LdapService) SaveProfilePicture(userId string, pictureString string) er
|
|||||||
|
|
||||||
} else {
|
} else {
|
||||||
// If the photo is a string, we assume that it's a binary string
|
// 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
|
// Update the profile picture
|
||||||
|
|||||||
Reference in New Issue
Block a user