]> git.openstreetmap.org Git - osqa.git/blob - forum/modules/template_loader.py/forum_modules/facebookauth/views.py
Creating my branch
[osqa.git] / forum / modules / template_loader.py / forum_modules / facebookauth / views.py
1 from forum.models import AuthKeyUserAssociation
2 from django.http import HttpResponse
3
4 def user_is_registered(request):
5     try:
6         fb_uid = request.POST['fb_uid']
7         #print fb_uid
8         AuthKeyUserAssociation.objects.get(key=fb_uid)
9         return HttpResponse('yes')
10     except:
11         return HttpResponse('no')