mirror of
https://github.com/internetee/registry.git
synced 2025-07-27 04:58:29 +02:00
Make authentication errors more consistent with other errors
This commit is contained in:
parent
c1ea79615f
commit
ad8dfcc28f
4 changed files with 5 additions and 5 deletions
|
@ -29,7 +29,7 @@ module Api
|
|||
if decryptor.valid?
|
||||
sign_in decryptor.user
|
||||
else
|
||||
render json: { errors: ['Not authorized'] }, status: :unauthorized
|
||||
render json: { errors: [{base: ['Not authorized']}] }, status: :unauthorized
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue