summaryrefslogtreecommitdiffstats
path: root/forum_modules/facebookauth/views.py
blob: f77c628278e1628ded9c529d9ec78ad3a0cffdd9 (plain)
1
2
3
4
5
6
7
8
9
10
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')