问题
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