From: deyk Date: Fri, 3 Feb 2012 18:24:38 +0000 (-0800) Subject: Getting the service off the POST form, like we should have been. X-Git-Tag: 22.4~48 X-Git-Url: https://git.mdrn.pl/django-cas-provider.git/commitdiff_plain/7ac783b3d7c4c673db943f364252f5b1e0fea53f?ds=sidebyside;hp=c4e712fdcc2a728dee5515070b15555648c074a6 Getting the service off the POST form, like we should have been. --- diff --git a/cas_provider/views.py b/cas_provider/views.py index ff7dcd7..108bc38 100644 --- a/cas_provider/views.py +++ b/cas_provider/views.py @@ -47,6 +47,7 @@ def login(request, template_name='cas/login.html', success_redirect='/account/', form = LoginForm(request.POST, request=request) if form.is_valid(): + service = form.cleaned_data.get('service', None) try: auth_args = dict(username=form.cleaned_data['email'], password=form.cleaned_data['password'])