-
Notifications
You must be signed in to change notification settings - Fork 458
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inactive users returning the same error as wrong credentials #571
Comments
Hello @anoited007, have you found a solution yet? I have the same problem. I plan to use the While my custom login view allows an inactive user to login, djoser's token login view return 400. Moreover, djoser's activation email does not work for inactive users who were logged in with my custom login view (and logged out before activation). Also, requests to base endpoints like Update 1: Update 1.5: |
Yes. I succeed by doing my own view, own serializer. I'm not using the custom settings. urls.py
core/views.py
core.serializers.py
|
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. Am I missing something or that is the expected behaviour? I have look at the error messages defined
constants.py
but the error I expect isn't the one returned.I get HTTP STATUS 401 with the detail below
{ "detail": "No active account found with the given credentials" }
My configuration is as follows:
The text was updated successfully, but these errors were encountered: