Uncommented code responsible for deleting tickets.
authorzuber <marek@stepniowski.com>
Mon, 5 Oct 2009 17:59:15 +0000 (19:59 +0200)
committerzuber <marek@stepniowski.com>
Mon, 5 Oct 2009 17:59:15 +0000 (19:59 +0200)
cas_provider/views.py

index 3ee5d7c..0483a32 100644 (file)
@@ -76,7 +76,7 @@ def service_validate(request):
     
     try:
         ticket = ServiceTicket.objects.get(ticket=ticket_string)
-        ticket.delete()
+        ticket.delete()
         return HttpResponse(auth_success_response(ticket.user), mimetype='text/xml')
     except ServiceTicket.DoesNotExist:
         return HttpResponse('''<cas:serviceResponse xmlns:cas="http://www.yale.edu/tp/cas">