]> git.openstreetmap.org Git - osqa.git/blob - forum_modules/facebookauth/views.py
removed semi-useless assignment of request.user to user
[osqa.git] / 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')