如何与蟒蛇社会权威性独特的电子邮件 [英] How to have unique emails with python social auth

查看:146
本文介绍了如何与蟒蛇社会权威性独特的电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Python社会验证(Django的)与谷歌和Facebook并创建不同的用户使用相同的电子邮件。我该如何解决呢?

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?

如果我用谷歌第一次登录,注销,然后用Facebook的,它必须只帐户关联,而不是创造。

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

谢谢,

推荐答案

一些code阅读我发现这在管道之后:

After some code reading I found this in the pipeline:

'social.pipeline.social_auth.associate_by_email',

所以,我之前

'social.pipeline.user.get_username',

和它的工作。

这篇关于如何与蟒蛇社会权威性独特的电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆