X-Git-Url: https://git.mdrn.pl/django-cas-provider.git/blobdiff_plain/cc61c5969227c2d49544997ebbf074541029400b..d20955a26f2dbfe2480c601c2e209be1a43060e1:/cas_provider/forms.py diff --git a/cas_provider/forms.py b/cas_provider/forms.py index f270c37..cb3660b 100644 --- a/cas_provider/forms.py +++ b/cas_provider/forms.py @@ -5,7 +5,7 @@ from django.contrib.auth import authenticate from utils import create_login_ticket class LoginForm(forms.Form): - username = forms.CharField(max_length=30) + email = forms.CharField(max_length=255) password = forms.CharField(widget=forms.PasswordInput) #warn = forms.BooleanField(required=False) # TODO: Implement lt = forms.CharField(widget=forms.HiddenInput, initial=create_login_ticket) @@ -13,4 +13,4 @@ class LoginForm(forms.Form): super(LoginForm, self).__init__(*args, **kwargs) self.request = request if service is not None: - self.fields['service'] = forms.CharField(widget=forms.HiddenInput, initial=service) \ No newline at end of file + self.fields['service'] = forms.CharField(widget=forms.HiddenInput, initial=service)