Browse Source

Issue #1263 - Render error message provided by connector if user authentication failed

pull/1339/head
Alexander Matyushentsev 7 years ago
parent
commit
ff8b44558e
  1. 2
      server/handlers.go

2
server/handlers.go

@ -386,7 +386,7 @@ func (s *Server) handleConnectorCallback(w http.ResponseWriter, r *http.Request)
if err != nil {
s.logger.Errorf("Failed to authenticate: %v", err)
s.renderError(w, http.StatusInternalServerError, "Failed to return user's identity.")
s.renderError(w, http.StatusInternalServerError, fmt.Sprintf("Failed to authenticate: %v", err))
return
}

Loading…
Cancel
Save