X-Git-Url: https://git.mdrn.pl/django-cas-provider.git/blobdiff_plain/cc61c5969227c2d49544997ebbf074541029400b..0006d9a177434daef39705f638d1945a5565eb7a:/cas_provider/forms.py?ds=sidebyside diff --git a/cas_provider/forms.py b/cas_provider/forms.py index f270c37..80b8913 100644 --- a/cas_provider/forms.py +++ b/cas_provider/forms.py @@ -1,12 +1,11 @@ from django import forms -from django.contrib.auth.forms import AuthenticationForm -from django.contrib.auth import authenticate +from django.utils.translation import ugettext_lazy as _ from utils import create_login_ticket class LoginForm(forms.Form): - username = forms.CharField(max_length=30) - password = forms.CharField(widget=forms.PasswordInput) + username = forms.CharField(max_length=30, label=_('username')) + password = forms.CharField(widget=forms.PasswordInput, label=_('password')) #warn = forms.BooleanField(required=False) # TODO: Implement lt = forms.CharField(widget=forms.HiddenInput, initial=create_login_ticket) def __init__(self, service=None, renew=None, gateway=None, request=None, *args, **kwargs):