From 8ace0586471d741bbe1d55dca48f524a3d385852 Mon Sep 17 00:00:00 2001 From: deyk Date: Thu, 12 Apr 2012 10:50:57 -0700 Subject: [PATCH] Changed the signature of the login hijack signal. --- cas_provider/signals.py | 2 +- cas_provider/views.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/cas_provider/signals.py b/cas_provider/signals.py index aa939a4..5a16f9f 100644 --- a/cas_provider/signals.py +++ b/cas_provider/signals.py @@ -6,4 +6,4 @@ from django import dispatch on_cas_collect_histories = dispatch.Signal(providing_args=["for_email"]) -on_cas_login = dispatch.Signal(providing_args=["request", "kwargs"]) +on_cas_login = dispatch.Signal(providing_args=["request"]) diff --git a/cas_provider/views.py b/cas_provider/views.py index 4121a11..5ba62e6 100644 --- a/cas_provider/views.py +++ b/cas_provider/views.py @@ -95,8 +95,7 @@ def login(request, template_name='cas/login.html', success_redirect='/account/', 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(sender=login, request=request, - kwargs=kwargs): + for receiver, response in signals.on_cas_login.send(sender=login, request=request, **kwargs): if isinstance(response, HttpResponse): return response -- 2.20.1