0
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-12-21 05:55:28 +01:00
gitea/services/auth/source
CaiCandong 7ad31567cd
Fix ldap admin privileges update bug (#27051)
When the user does not set a username lookup condition, LDAP will get an
empty string `""` for the user, hence the following code
```
if isExist, err := user_model.IsUserExist(db.DefaultContext, 0, sr.Username)
```
The user presence determination will always be nonexistent, so updates
to user information will never be performed.


Fix #27049
2023-10-01 11:32:12 +00:00
..
db Reduce usage of db.DefaultContext (#27073) 2023-09-14 17:09:32 +00:00
ldap Fix ldap admin privileges update bug (#27051) 2023-10-01 11:32:12 +00:00
oauth2 Increase auth provider icon size on login page (#27122) 2023-09-19 21:47:13 +00:00
pam Reduce usage of db.DefaultContext (#27073) 2023-09-14 17:09:32 +00:00
smtp Reduce usage of db.DefaultContext (#27073) 2023-09-14 17:09:32 +00:00
sspi Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
source_group_sync.go Reduce usage of db.DefaultContext (#27073) 2023-09-14 17:09:32 +00:00