Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix login with email for ldap users (go-gitea#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.
- Loading branch information