forked from mystiq/dex
Merge pull request #1830 from WorldProgrammingLtd/fix-1813
fix: log errors from login during password grant
This commit is contained in:
commit
9c026107e6
1 changed files with 1 additions and 0 deletions
|
@ -1241,6 +1241,7 @@ func (s *Server) handlePasswordGrant(w http.ResponseWriter, r *http.Request, cli
|
|||
password := q.Get("password")
|
||||
identity, ok, err := passwordConnector.Login(r.Context(), parseScopes(scopes), username, password)
|
||||
if err != nil {
|
||||
s.logger.Errorf("Failed to login user: %v", err)
|
||||
s.tokenErrHelper(w, errInvalidRequest, "Could not login user", http.StatusBadRequest)
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue