This commit is contained in:
Valentin Samir 2016-06-03 14:19:43 +02:00
parent 77fcd7a24e
commit 3a57ad0835
2 changed files with 3 additions and 1 deletions

View File

@ -17,6 +17,7 @@ from django.utils.translation import ugettext_lazy as _
import cas_server.utils as utils
import cas_server.models as models
class WarnForm(forms.Form):
service = forms.CharField(widget=forms.HiddenInput(), required=False)
renew = forms.BooleanField(widget=forms.HiddenInput(), required=False)
@ -25,6 +26,7 @@ class WarnForm(forms.Form):
warned = forms.BooleanField(widget=forms.HiddenInput(), required=False)
lt = forms.CharField(widget=forms.HiddenInput(), required=False)
class UserCredential(forms.Form):
"""Form used on the login page to retrive user credentials"""
username = forms.CharField(label=_('login'))

View File

@ -197,7 +197,7 @@ class LoginView(View, LogoutMixin):
def init_post(self, request):
self.request = request
self.service = request.POST.get('service')
if request.POST.get('renew') and request.POST['renew'] != "False" :
if request.POST.get('renew') and request.POST['renew'] != "False":
self.renew = True
else:
self.renew = False