[auth_ldap][fix] fix loade correct picture

This commit is contained in:
Tim Gröger 2021-11-16 11:18:00 +01:00
parent ae1bf6c54b
commit 0ef9d18ace
1 changed files with 1 additions and 1 deletions

View File

@ -147,7 +147,7 @@ class AuthLDAP(AuthPlugin):
if "jpegPhoto" in r and len(r["jpegPhoto"]) > 0:
avatar = _Avatar()
avatar.mimetype = "image/jpeg"
avatar.binary.extend(r["jpegPhoto"][0])
avatar.binary = bytearray(r['jpegPhoto'][0])
return avatar
else:
raise NotFound