Ticket #10777: 10777.diff
File 10777.diff, 984 bytes (added by , 15 years ago) |
---|
-
django/contrib/auth/forms.py
47 47 username = forms.RegexField(label=_("Username"), max_length=30, regex=r'^\w+$', 48 48 help_text = _("Required. 30 characters or fewer. Alphanumeric characters only (letters, digits and underscores)."), 49 49 error_message = _("This value must contain only letters, numbers and underscores.")) 50 50 51 51 class Meta: 52 52 model = User 53 53 … … 57 57 username/password logins. 58 58 """ 59 59 username = forms.CharField(label=_("Username"), max_length=30) 60 password = forms.CharField(label=_("Password"), widget=forms.PasswordInput) 60 password = forms.CharField(label=_("Password"), 61 widget=forms.PasswordInput(render_value=False)) 61 62 62 63 def __init__(self, request=None, *args, **kwargs): 63 64 """