]> git.openstreetmap.org Git - osqa.git/blobdiff - forum_modules/facebookauth/views.py
removed semi-useless assignment of request.user to user
[osqa.git] / forum_modules / facebookauth / views.py
old mode 100755 (executable)
new mode 100644 (file)
index f1e8f3b..f77c628
@@ -1,11 +1,11 @@
-from forum.models import AuthKeyUserAssociation\r
-from django.http import HttpResponse\r
-\r
-def user_is_registered(request):\r
-    try:\r
-        fb_uid = request.POST['fb_uid']\r
-        print fb_uid\r
-        AuthKeyUserAssociation.objects.get(key=fb_uid)\r
-        return HttpResponse('yes')\r
-    except:\r
+from forum.models import AuthKeyUserAssociation
+from django.http import HttpResponse
+
+def user_is_registered(request):
+    try:
+        fb_uid = request.POST['fb_uid']
+        #print fb_uid
+        AuthKeyUserAssociation.objects.get(key=fb_uid)
+        return HttpResponse('yes')
+    except:
         return HttpResponse('no')
\ No newline at end of file