Jul*_*ana 6 python authentication django social django-socialauth
我在谷歌和Facebook上使用Python Social Auth(django),它使用相同的电子邮件创建不同的用户.我该如何解决这个问题?
如果我首先使用谷歌登录,注销然后使用Facebook,它必须只关联帐户而不是创建.
谢谢,
Jul*_*ana 16
经过一些代码阅读后,我发现了这个问题:
'social.pipeline.social_auth.associate_by_email',
Run Code Online (Sandbox Code Playgroud)
所以,我之前添加了它
'social.pipeline.user.get_username',
Run Code Online (Sandbox Code Playgroud)
它奏效了.