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

Verification link always invalid when trying to register again with the same email address #56

Open
evyd13 opened this issue Sep 29, 2022 · 0 comments

Comments

@evyd13
Copy link

evyd13 commented Sep 29, 2022

Issue is on this line:

inactive_users = get_user_model().objects.filter(email=plain_email)

When you register using an unused email, everything works perfectly. The issue arises when you register again using the same email address, which is allowed by default in Django. This results in the first item getting picked, which is the one created earlier. The verification token will not match and you'll land on an error page. Maybe it's a good idea to sort by date_joined to prevent this from wrongly happening?

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