mirror of https://github.com/go-gitea/gitea
Fix login with email for ldap users (#18800)
`authenticator.Authenticate` has assume the login name is not an email, but `username` maybe an email. So when we find the user via email address, we should use `user.LoginName` instead of `username` which is an email address.pull/18824/head^2
parent
d5a4c5530a
commit
00be0c1b21
Loading…
Reference in new issue