Django-allauth redirected to connections
Posted
by
camara90100
on Stack Overflow
See other posts from Stack Overflow
or by camara90100
Published on 2014-06-07T03:20:37Z
Indexed on
2014/06/07
3:24 UTC
Read the original article
Hit count: 326
I'm using django-allauth to signup users with Facebook, and I'm setting the
ACCOUNT_EMAIL_REQUIRED
to True
so when a user doesn't have email saved on his account I get redirected to the allauth/templates/socialaccount/Signup.html
and when I use a test user to enter a valid email, I get redirect to "connections.html"
which then asks me to choose one of the social accounts and remove it. and the form action method is set to 'connections url'
so it becomes an infinite loop.
anyone knows what's wrong?
here's my settings
SOCIALACCOUNT_PROVIDERS = \
{ 'facebook':
{ 'SCOPE': ['email', 'publish_stream'],
# 'AUTH_PARAMS': { 'auth_type': 'reauthenticate' },
'METHOD': 'js_sdk' ,
'LOCALE_FUNC': lambda request: 'en_US'}}
ACCOUNT_EMAIL_REQUIRED =True
ACCOUNT_ADAPTER = 'profiles.adapter.MyAccountAdapter'
SOCIALACCOUNT_ADAPTER ='profiles.adapter.MySocialAccountAdapter'
© Stack Overflow or respective owner