Fixed a possible bug with the use of the IP authenticator. Now it checks that the username "ip" is the same as request.ip

This commit is contained in:
Adolfo Gómez 2013-06-25 15:40:20 +00:00
parent 8ca12ddbc6
commit 2cc81d2b8b

View File

@ -55,7 +55,7 @@ class BaseForm(forms.Form):
class LoginForm(BaseForm):
user = forms.CharField(label=_('Username'), max_length=64)
password = forms.CharField(label=_('Password'), widget=forms.PasswordInput({'title': _('Password')}))
password = forms.CharField(label=_('Password'), widget=forms.PasswordInput({'title': _('Password')}), required=False)
authenticator = forms.ChoiceField(label=_('Authenticator'), choices = ())
java = forms.CharField(widget = forms.HiddenInput())
standard = forms.CharField(widget = forms.HiddenInput(), required=False)