mirror of
https://github.com/go-gitea/gitea.git
synced 2026-07-10 23:41:21 +09:00
00be0c1b21
`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.