Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* 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 <[email protected]> * Better ident * Apply suggestions from code review Update user information Co-Authored-By: 6543 <[email protected]> * 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 <[email protected]> * if adminFilter is set - use it Co-Authored-By: Lauris BH <[email protected]> * Update models/login_source.go well - I should look more detaild at suggestions :D Co-Authored-By: Lauris BH <[email protected]> * make it work again * set is_admin value to user * look nicer
- Loading branch information