I am using Django 2.2.14 with the configuration below for Djoser 2.1.0 but when trying to get JWT token for an inactive user, it returns the same error as using a wrong password which makes it tricky to differentiate. I get HTTP STATUS 401 with the detail below
{ "detail": "No active account found with the given credentials }
My configuration Djoser is shown below:
'LOGIN_FIELD': 'email',
'SEND_CONFIRMATION_EMAIL': True,
'PASSWORD_CHANGED_EMAIL_CONFIRMATION': True,
'USER_CREATE_PASSWORD_RETYPE': True,
'TOKEN_MODEL': None,
'SEND_ACTIVATION_EMAIL': True,
"LOGOUT_ON_PASSWORD_CHANGE": False,
"PASSWORD_RESET_SHOW_EMAIL_NOT_FOUND": True,
"USERNAME_RESET_SHOW_EMAIL_NOT_FOUND": True,
'PASSWORD_RESET_CONFIRM_URL': 'account/password/reset/confirm/{uid}/{token}',
'USERNAME_RESET_CONFIRM_URL': 'account/username/reset/ /{uid}/{token}',
'ACTIVATION_URL': 'account/activate/{uid}/{token}',
I am also using AUTHENTICATION_BACKENDS = ['django.contrib.auth.backends.AllowAllUsersModelBackend']