How to get unique emails using python social auth

I use Python Social Auth (django) with Google and Facebook and create different users with the same email address. How to fix it?

If I first register with Google, log out, and then using facebook, it should just link the accounts and not create.

Thanks,

+6
source share
1 answer

After reading some code, 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.

+16
source

Source: https://habr.com/ru/post/955580/


All Articles