diff --git a/services/auth/signin.go b/services/auth/signin.go index 1b5b7f5d2a18..aa9a9660c039 100644 --- a/services/auth/signin.go +++ b/services/auth/signin.go @@ -32,7 +32,7 @@ func UserSignIn(username, password string) (*user_model.User, *auth.Source, erro } if !has { return nil, nil, user_model.ErrEmailAddressNotExist{ - Email: user.Email, + Email: username, } } user = &user_model.User{ID: emailAddress.UID}