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

Password Reset Emails don't come if Authenticated via Python Social Auth #881

Closed
harshmaur opened this issue Mar 31, 2016 · 3 comments
Closed

Comments

@harshmaur
Copy link

All the emails that are registered through python-social-auth backend do not have any passwords set in their account.

If the same users try to reset their password from the from, they do not get email in their mailbox, the users who registered via django backend receive the email properly.

How do we sort out this issue? I do not want to ask users for password when they are registering.

@tkajtoch
Copy link

Hello,

Look at https://github.com/django/django/blob/master/django/contrib/auth/forms.py#L235. Django in it's default password reset form filters out users who do not have set usable password. The problem is users registered via python-social-auth does not.

You can fix this by overriding get_users method from default form and deleting that part of code.

@harshmaur
Copy link
Author

Thanks!

@engrimran7
Copy link

engrimran7 commented Jul 6, 2022

Hello,

Look at https://github.com/django/django/blob/master/django/contrib/auth/forms.py#L235. Django in it's default password reset form filters out users who do not have set usable password. The problem is users registered via python-social-auth does not.

You can fix this by overriding get_users method from default form and deleting that part of code.

Hi dear can you please guide with the comprehensive code required to do so instead of referring to the link any help is highly appreciated
i am using django allauth for social signup and now want the users to reset password if required or if possible to add set password very after getting authentication from social auth

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

3 participants