Browse Source

Fix unauthorized return code

denney-fix-saving-dates
Jason Denney 11 years ago
parent
commit
4b5133fd02
  1. 2
      app/controllers/api/v1/base_controller.rb

2
app/controllers/api/v1/base_controller.rb

@ -11,7 +11,7 @@ class Api::V1::BaseController < ActionController::Base
if @current_user.nil? if @current_user.nil?
msg = "Username/Password/Token invalid" msg = "Username/Password/Token invalid"
render :json => {:error => msg }, :status => 403 and return render :json => {:error => msg }, :status => 401 and return
end end
else else
authenticate_user! authenticate_user!

Loading…
Cancel
Save