fnp
/
django-cas-provider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Changed the signature of the login hijack signal.
[django-cas-provider.git]
/
cas_provider
/
views.py
diff --git
a/cas_provider/views.py
b/cas_provider/views.py
index
675150b
..
5ba62e6
100644
(file)
--- a/
cas_provider/views.py
+++ b/
cas_provider/views.py
@@
-94,6
+94,11
@@
def login(request, template_name='cas/login.html', success_redirect='/account/',
if not user.is_active:
errors.append('This account is disabled.')
else:
if not user.is_active:
errors.append('This account is disabled.')
else:
+ # Send the on_cas_login signal. If we get an HttpResponse, return that.
+ for receiver, response in signals.on_cas_login.send(sender=login, request=request, **kwargs):
+ if isinstance(response, HttpResponse):
+ return response
+
if service is None:
# Try and pull the service off the session
service = request.session.pop('service', service)
if service is None:
# Try and pull the service off the session
service = request.session.pop('service', service)