changed jwt login view (changed status code if user not found)

This commit is contained in:
Anatoly 2019-08-28 12:58:33 +03:00
parent 0db7b52df7
commit de0a1d6358

View File

@ -24,7 +24,7 @@ class ServiceError(ProjectBaseException):
class UserNotFoundError(ProjectBaseException):
"""The exception should be thrown when the user cannot get"""
status_code = status.HTTP_400_BAD_REQUEST
status_code = status.HTTP_401_UNAUTHORIZED
default_detail = _('User not found')