mirror of
https://github.com/fspc/BikeShed-1.git
synced 2025-02-28 16:53:23 -05:00
Fix unauthorized return code
This commit is contained in:
parent
9edb90203c
commit
4b5133fd02
@ -11,7 +11,7 @@ class Api::V1::BaseController < ActionController::Base
|
||||
|
||||
if @current_user.nil?
|
||||
msg = "Username/Password/Token invalid"
|
||||
render :json => {:error => msg }, :status => 403 and return
|
||||
render :json => {:error => msg }, :status => 401 and return
|
||||
end
|
||||
else
|
||||
authenticate_user!
|
||||
|
Loading…
x
Reference in New Issue
Block a user