Skip to content

Commit

Permalink
Merge pull request dexidp#1530 from dexidp/ldap-error
Browse files Browse the repository at this point in the history
connector/ldap: display login error
  • Loading branch information
srenatus authored Aug 23, 2019
2 parents 1f31d18 + bd61535 commit 133c256
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ func (s *Server) handleConnectorLogin(w http.ResponseWriter, r *http.Request) {
identity, ok, err := passwordConnector.Login(r.Context(), scopes, username, password)
if err != nil {
s.logger.Errorf("Failed to login user: %v", err)
s.renderError(w, http.StatusInternalServerError, "Login error.")
s.renderError(w, http.StatusInternalServerError, fmt.Sprintf("Login error: %v", err))
return
}
if !ok {
Expand Down

0 comments on commit 133c256

Please sign in to comment.