forgejo/services/forms
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 <art27@cantab.net>

* Rename as Avatar Attribute (drop JPEG)

Signed-off-by: Andrew Thornton <art27@cantab.net>

* Always synchronize avatar if there is change

Signed-off-by: Andrew Thornton <art27@cantab.net>

* Actually get the avatar from the ldap

Signed-off-by: Andrew Thornton <art27@cantab.net>

* clean-up

Signed-off-by: Andrew Thornton <art27@cantab.net>

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

Signed-off-by: Andrew Thornton <art27@cantab.net>

* slight shortcut in IsUploadAvatarChanged

Signed-off-by: Andrew Thornton <art27@cantab.net>

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
2021-09-26 22:39:36 -04:00
..
admin.go Add Visible modes function from Organisation to Users too (#16069) 2021-06-26 20:53:14 +01:00
auth_form.go Allow LDAP Sources to provide Avatars (#16851) 2021-09-26 22:39:36 -04:00
org.go
repo_branch_form.go
repo_form.go Support unprotected file patterns (#16395) 2021-09-11 16:21:17 +02:00
repo_form_test.go
repo_tag_form.go Add tag protection (#15629) 2021-06-25 16:28:55 +02:00
user_form.go Added introspection endpoint. (#16752) 2021-08-20 22:16:45 -04:00
user_form_auth_openid.go
user_form_test.go