0
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-12-14 05:24:03 +01:00
gitea/services/auth
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
..
source Fix ldap admin privileges update bug (#27051) 2023-10-01 11:32:12 +00:00
auth_test.go
auth.go
basic.go
group.go
httpsign.go
interface.go
oauth2.go
reverseproxy.go
session.go
signin.go
source.go
sspi.go
sspiauth_posix.go
sspiauth_windows.go
sync.go