Fix 401 message

This commit is contained in:
Kamil Trzcinski 2016-05-16 17:12:45 -05:00
parent e3e392965e
commit 23d1c45410

View file

@ -6,7 +6,7 @@ module Auth
return error('not found', 404) unless registry.enabled
if params[:offline_token]
return error('forbidden', 401) unless current_user
return error('unauthorized', 401) unless current_user
else
return error('forbidden', 403) unless scope
end