Files
gitea/cmd
zeripath 123f0aea00 Allow LDAP Sources to provide Avatars (#16851)
* Allow LDAP Sources to provide Avatars

Add setting to LDAP source to allow it to provide an Avatar.

Currently this is required to point to the image bytes.

Fix #4144

Signed-off-by: Andrew Thornton <[email protected]>

* Rename as Avatar Attribute (drop JPEG)

Signed-off-by: Andrew Thornton <[email protected]>

* Always synchronize avatar if there is change

Signed-off-by: Andrew Thornton <[email protected]>

* Actually get the avatar from the ldap

Signed-off-by: Andrew Thornton <[email protected]>

* clean-up

Signed-off-by: Andrew Thornton <[email protected]>

* use len()>0 rather than != ""

Signed-off-by: Andrew Thornton <[email protected]>

* slight shortcut in IsUploadAvatarChanged

Signed-off-by: Andrew Thornton <[email protected]>

Co-authored-by: techknowlogick <[email protected]>
2021-09-26 22:39:36 -04:00
..