]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/views/auth.py
do not use the JavaScript SDK for Facebook authentication, use the server side flow...
[osqa.git] / forum / views / auth.py
index d11c20bb417cb62163987aa38d7f0d1bf33088ca..9e7d6c6f828e92d43d76a79dfe90a18e712911d8 100644 (file)
@@ -196,11 +196,7 @@ def external_register(request):
 
         provider_class = AUTH_PROVIDERS[auth_provider].consumer
 
-        # Pass the cookies to the Facebook authentication class get_user_data method. We need them to take the access token.
-        if provider_class.__class__.__name__ == 'FacebookAuthConsumer':
-            user_data = provider_class.get_user_data(request.COOKIES)
-        else:
-            user_data = provider_class.get_user_data(request.session['assoc_key'])
+        user_data = provider_class.get_user_data(request.session['assoc_key'])
 
         if not user_data:
             user_data = request.session.get('auth_consumer_data', {})