diff options
author | hrcerqueira <hrcerqueira@gmail.com> | 2010-03-01 17:37:32 +0000 |
---|---|---|
committer | hrcerqueira <hrcerqueira@gmail.com> | 2010-03-01 17:37:32 +0000 |
commit | d01a3ff31d96aaedd9ce8ba38cb5d0cde53584fc (patch) | |
tree | bc5cd0632fdb2edbde77a5ea0db2be4cdeaedc59 /forum_modules/facebookauth/views.py | |
parent | 0d29fc79deba22027187ae4627a7c38b3fdef2e4 (diff) | |
download | askbot-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-x | forum_modules/facebookauth/views.py | 11 |
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 |