Fix 401 message
This commit is contained in:
parent
e3e392965e
commit
23d1c45410
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue