Ticket #10777: 10777.diff

File 10777.diff, 984 bytes (added by Chris Beaven, 15 years ago)
  • django/contrib/auth/forms.py

     
    4747    username = forms.RegexField(label=_("Username"), max_length=30, regex=r'^\w+$',
    4848        help_text = _("Required. 30 characters or fewer. Alphanumeric characters only (letters, digits and underscores)."),
    4949        error_message = _("This value must contain only letters, numbers and underscores."))
    50    
     50
    5151    class Meta:
    5252        model = User
    5353
     
    5757    username/password logins.
    5858    """
    5959    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))
    6162
    6263    def __init__(self, request=None, *args, **kwargs):
    6364        """
Back to Top