Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix login with email for ldap users (#18800) #18836

Merged
2 changes: 1 addition & 1 deletion services/auth/signin.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func UserSignIn(username, password string) (*user_model.User, *auth.Source, erro
return nil, nil, smtp.ErrUnsupportedLoginType
}

user, err := authenticator.Authenticate(user, username, password)
user, err := authenticator.Authenticate(user, user.LoginName, password)
if err != nil {
return nil, nil, err
}
Expand Down