Lunny Xiao 6591f87b28
Fix login with email for ldap users (#18800) (#18836)
`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.

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
2022-02-22 18:04:57 -05:00
..
2022-01-14 16:03:31 +01:00
2022-01-02 21:12:35 +08:00
2022-01-02 21:12:35 +08:00
2022-01-02 21:12:35 +08:00
2022-01-02 21:12:35 +08:00