style
This commit is contained in:
parent
77fcd7a24e
commit
3a57ad0835
@ -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'))
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user