diff options
author | 6543 <24977596+6543@users.noreply.github.com> | 2019-11-14 20:10:23 +0100 |
---|---|---|
committer | zeripath <art27@cantab.net> | 2019-11-14 19:10:23 +0000 |
commit | 665ce1dcb36727f46a7261366528fbe68733b6f0 (patch) | |
tree | 796a5d3e7276276be09c57dcce2484525680dd7d /options | |
parent | 9bd879bef85697e96f05371fbfef82273fc7e465 (diff) | |
download | gitea-665ce1dcb36727f46a7261366528fbe68733b6f0.tar.gz gitea-665ce1dcb36727f46a7261366528fbe68733b6f0.zip |
Drop Admin attribute based on LDAP when login (continue #1743) (#8849)
* Update User information in Gitea based on LDAP when login
* Update Admin Flag only if exist in settings
* Fix affectation
* Update models/login_source.go
Co-Authored-By: JustKiddingCode <JustKiddingCode@users.noreply.github.com>
* Better ident
* Apply suggestions from code review
Update user information
Co-Authored-By: 6543 <24977596+6543@users.noreply.github.com>
* Make fmt
* add err handling
* if user exist but login is Prohibit return return nil, and Prohibit err
* keep login speed
* User sync is implemented at #1478 - so only make sure that admin acces is drpoed if changed
* handle error and still use async task
* no async
* only update admin if Sync is enabled
* update two comments
* add lafriks suggestions
Co-Authored-By: Lauris BH <lauris@nix.lv>
* if adminFilter is set - use it
Co-Authored-By: Lauris BH <lauris@nix.lv>
* Update models/login_source.go
well - I should look more detaild at suggestions :D
Co-Authored-By: Lauris BH <lauris@nix.lv>
* make it work again
* set is_admin value to user
* look nicer
Diffstat (limited to 'options')
0 files changed, 0 insertions, 0 deletions