Skip to content
Snippets Groups Projects
Commit 4da93e75 authored by Tom Quarendon's avatar Tom Quarendon Committed by Alastair Houghton
Browse files

fix: log errors from login during password grant


Issues: #1813
Signed-off-by: default avatarAlastair Houghton <alastair@alastairs-place.net>
parent d4c3a350
No related branches found
No related tags found
No related merge requests found
...@@ -1241,6 +1241,7 @@ func (s *Server) handlePasswordGrant(w http.ResponseWriter, r *http.Request, cli ...@@ -1241,6 +1241,7 @@ func (s *Server) handlePasswordGrant(w http.ResponseWriter, r *http.Request, cli
password := q.Get("password") password := q.Get("password")
identity, ok, err := passwordConnector.Login(r.Context(), parseScopes(scopes), username, password) identity, ok, err := passwordConnector.Login(r.Context(), parseScopes(scopes), username, password)
if err != nil { if err != nil {
s.logger.Errorf("Failed to login user: %v", err)
s.tokenErrHelper(w, errInvalidRequest, "Could not login user", http.StatusBadRequest) s.tokenErrHelper(w, errInvalidRequest, "Could not login user", http.StatusBadRequest)
return return
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment