How to have unique emails with python social auth

耗尽温柔 提交于 2019-12-04 12:11:55

问题


I'm using Python Social Auth (django) with Google and Facebook and it creates different users with the same email. How do I fix that?

If I log first with google, logout and then with facebook, it must just associate the accounts and not create.

Thanks,


回答1:


After some code reading I found this in the pipeline:

'social.pipeline.social_auth.associate_by_email',

So, I just added it before

'social.pipeline.user.get_username',

And it worked.



来源:https://stackoverflow.com/questions/19273904/how-to-have-unique-emails-with-python-social-auth

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!