fix: log errors from login during password grant
Issues: #1813 Signed-off-by: Alastair Houghton <alastair@alastairs-place.net>
This commit is contained in:
		
				
					committed by
					
						 Alastair Houghton
						Alastair Houghton
					
				
			
			
				
	
			
			
			
						parent
						
							d4c3a3505d
						
					
				
				
					commit
					4da93e75fc
				
			| @@ -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 | ||||||
| 	} | 	} | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user