Commit 23d1c454 authored by Kamil Trzcinski's avatar Kamil Trzcinski

Fix 401 message

parent e3e39296
...@@ -6,7 +6,7 @@ module Auth ...@@ -6,7 +6,7 @@ module Auth
return error('not found', 404) unless registry.enabled return error('not found', 404) unless registry.enabled
if params[:offline_token] if params[:offline_token]
return error('forbidden', 401) unless current_user return error('unauthorized', 401) unless current_user
else else
return error('forbidden', 403) unless scope return error('forbidden', 403) unless scope
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment