mirror of
https://gitee.com/gitea/gitea
synced 2026-04-09 22:25:21 +08:00
`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>