From: deyk Date: Thu, 12 Apr 2012 17:50:57 +0000 (-0700) Subject: Changed the signature of the login hijack signal. X-Git-Tag: 22.4~33 X-Git-Url: https://git.mdrn.pl/django-cas-provider.git/commitdiff_plain/8ace0586471d741bbe1d55dca48f524a3d385852?ds=inline Changed the signature of the login hijack signal. --- 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