[auth_ldap][fix] fix loade correct picture
This commit is contained in:
parent
ae1bf6c54b
commit
0ef9d18ace
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue