-
Notifications
You must be signed in to change notification settings - Fork 324
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
Fixed Incompatibility with django-allauth v0.55.0 #536
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After the maintainer finalizes this PR, change (in demo/requirements.pip
)
dj-rest-auth @ git+https://github.com/brandon-kong/dj-rest-auth.git@master
to
dj-rest-auth @ git+https://github.com/iMerica/dj-rest-auth.git@master
I tweaked it for testing purposes, but after all changes are verified, it should be linking to this repo.
Hi @brandon-kong, |
Good catch, I completely missed their new replacement. |
Actually, is that the intended use-case? As I'm testing it now, users would be able to create accounts with already-existing emails if the email is not verified; I assume that isn't the intended result. Wouldn't it make more sense to filter for emails existing rather than filtering for verified existing emails? I'll revert my code back to the previous commit I pushed |
I had started to work on this, and then after seeing your direction, I decided just to commit and opened #539.
I disagree and think that is the intended result. With the method you outlined, I could mass register all emails and effectively block users from signing up. Instead, you should allow duplicate email registrations, as only one will actually get verified. Then, you can run a cleanup job to remove all |
dj-rest-auth is not compatible with django-allauth's latest version. This PR fixes that issue upon the newest release of django-allauth v0.55.0.
I created a
email_address_exists
method in dj_rest_auth's utils with the same implementation.