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
allauth ACCOUNT_UNIQUE_EMAIL doesn't work as expected #617
Comments
Just ran into this issue myself. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There is an edge case when using email as the authentication method as well as email verification. The server will crash if the user hasn't verified the email but a new registration with that same email is tried.
Steps to reproduce:
allauth
settingsAnalysis
I found that this edge case is not handled in the serializer:
The validation error for unique email is only raised if the account has been verified.
Here's a proposed fix:
The wording is not the best and can be changed.
Tested and working:
Opened #618
The text was updated successfully, but these errors were encountered: