1 from django.http import HttpResponse
2 from portal.actions import clear_user_creds
5 def dispatch(request, action):
7 if (action == 'clear') :
9 emails = request.POST.getlist('emails[]')
11 emails = request.GET.getlist('emails[]')
15 clear = clear_user_creds(request, email)
22 ret = { "ret" : 1, "emails" : emails }
26 return HttpResponse(json.dumps(ret), content_type="application/json")