app/controllers/katello/failed_authentication_controller.rb in katello-2.4.5 vs app/controllers/katello/failed_authentication_controller.rb in katello-3.0.0.rc1
- old
+ new
@@ -30,10 +30,9 @@
# This method is called when warden stack cannot authenticate API request
def unauthenticated_api
Rails.logger.warn "Request is unauthenticated_api for #{request.remote_ip}"
m = "Invalid credentials"
respond_to do |format|
- # rubocop:disable SymbolName
format.json { render :json => {:displayMessage => m, :errors => [m] }, :status => 401 }
format.all { render :text => m, :status => 401 }
end
end