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 (from parent 1:
2e6b294
)
Clarified logging on validation
author
deyk
<deyk@crossway.org>
Fri, 3 Feb 2012 23:21:44 +0000
(15:21 -0800)
committer
deyk
<deyk@crossway.org>
Fri, 3 Feb 2012 23:21:44 +0000
(15:21 -0800)
cas_provider/views.py
patch
|
blob
|
history
diff --git
a/cas_provider/views.py
b/cas_provider/views.py
index
b67635d
..
ea72805
100644
(file)
--- a/
cas_provider/views.py
+++ b/
cas_provider/views.py
@@
-142,7
+142,7
@@
def validate(request):
results = signals.on_cas_collect_histories.send(sender=validate, for_email=ticket.user.email)
histories = '\n'.join('\n'.join(rs) for rc, rs in results)
results = signals.on_cas_collect_histories.send(sender=validate, for_email=ticket.user.email)
histories = '\n'.join('\n'.join(rs) for rc, rs in results)
-
+ logger.info('Validated %s %s', username, "(also %s)" % histories if histories else '')
return HttpResponse("yes\n%s\n%s" % (username, histories))
return HttpResponse("no\n\n")
return HttpResponse("yes\n%s\n%s" % (username, histories))
return HttpResponse("no\n\n")