summaryrefslogtreecommitdiffstats
path: root/forum_modules/facebookauth/views.py
diff options
context:
space:
mode:
authorhrcerqueira <hrcerqueira@gmail.com>2010-03-01 17:37:32 +0000
committerhrcerqueira <hrcerqueira@gmail.com>2010-03-01 17:37:32 +0000
commitd01a3ff31d96aaedd9ce8ba38cb5d0cde53584fc (patch)
treebc5cd0632fdb2edbde77a5ea0db2be4cdeaedc59 /forum_modules/facebookauth/views.py
parent0d29fc79deba22027187ae4627a7c38b3fdef2e4 (diff)
downloadaskbot-d01a3ff31d96aaedd9ce8ba38cb5d0cde53584fc.tar.gz
askbot-d01a3ff31d96aaedd9ce8ba38cb5d0cde53584fc.tar.bz2
askbot-d01a3ff31d96aaedd9ce8ba38cb5d0cde53584fc.zip
New auth system, see the wiki for details.
Diffstat (limited to 'forum_modules/facebookauth/views.py')
-rwxr-xr-xforum_modules/facebookauth/views.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/forum_modules/facebookauth/views.py b/forum_modules/facebookauth/views.py
new file mode 100755
index 00000000..f1e8f3be
--- /dev/null
+++ b/forum_modules/facebookauth/views.py
@@ -0,0 +1,11 @@
+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