fnp
/
django-cas-provider.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d49f1c1
)
Clarified validation logging.
author
deyk
<deyk@crossway.org>
Fri, 3 Feb 2012 23:15:02 +0000
(15:15 -0800)
committer
deyk
<deyk@crossway.org>
Fri, 3 Feb 2012 23:15:02 +0000
(15:15 -0800)
cas_provider/views.py
patch
|
blob
|
history
diff --git
a/cas_provider/views.py
b/cas_provider/views.py
index
eed2d64
..
b67635d
100644
(file)
--- a/
cas_provider/views.py
+++ b/
cas_provider/views.py
@@
-130,13
+130,12
@@
def socialauth_login(request, template_name='cas/login.html', success_redirect='
def validate(request):
service = request.GET.get('service', None)
ticket_string = request.GET.get('ticket', None)
def validate(request):
service = request.GET.get('service', None)
ticket_string = request.GET.get('ticket', None)
- logger.debug("service: %s"% service)
- logger.debug("ticket_string: %s"% ticket_string)
+ logger.info('Validating ticket %s for %s', ticket_string, service)
if service is not None and ticket_string is not None:
try:
ticket = ServiceTicket.objects.get(ticket=ticket_string)
except ServiceTicket.DoesNotExist:
if service is not None and ticket_string is not None:
try:
ticket = ServiceTicket.objects.get(ticket=ticket_string)
except ServiceTicket.DoesNotExist:
- logger.exception("Tried to validate with an invalid ticket
: %s /
%s", ticket_string, service)
+ logger.exception("Tried to validate with an invalid ticket
%s for
%s", ticket_string, service)
else:
username = ticket.user.username
ticket.delete()
else:
username = ticket.user.username
ticket.delete()