connector/ldap: display login error

This commit is contained in:
Nandor Kracser 2019-08-22 15:55:05 +02:00
parent ab08d7b3a4
commit bd61535cb6

View File

@ -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 {