Skip to content
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

Wrong response on using login without verifying the user #656

Closed
vi4hu opened this issue Feb 24, 2022 · 1 comment
Closed

Wrong response on using login without verifying the user #656

vi4hu opened this issue Feb 24, 2022 · 1 comment

Comments

@vi4hu
Copy link

vi4hu commented Feb 24, 2022

Python version: 3.8.0
Django version: 3.2.4
Django-rest-auth version: 0.9.5

When a user tries to log in before verifying the Email, (s)he should get an Email is not verified. response.
Right now, it says the password is wrong for the given user.

{
    "non_field_errors": [
        "Incorrect password for this user. You have 4 more attempts to login"
    ]
}

Urlpattern:

path('', include('rest_auth.urls')),

Could this be added as a feature?

@vi4hu
Copy link
Author

vi4hu commented Feb 25, 2022

There is a middleware that is changing the ValidationError response. Everything is fine with the django-rest-auth==0.9.5

@vi4hu vi4hu closed this as completed Feb 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant