1. Andreas Madsack
  2. django-registration

Commits

ubernostrum  committed 852525a

And make the password fields blank themselves on validation errors

  • Participants
  • Parent commits df8b10e
  • Branches default

Comments (0)

Files changed (1)

File registration/forms.py

View file
     email = forms.EmailField(widget=forms.TextInput(attrs=dict(attrs_dict,
                                                                maxlength=75)),
                              label=_(u'email address'))
-    password1 = forms.CharField(widget=forms.PasswordInput(attrs=attrs_dict),
+    password1 = forms.CharField(widget=forms.PasswordInput(attrs=attrs_dict, render_value=False),
                                 label=_(u'password'))
-    password2 = forms.CharField(widget=forms.PasswordInput(attrs=attrs_dict),
+    password2 = forms.CharField(widget=forms.PasswordInput(attrs=attrs_dict, render_value=False),
                                 label=_(u'password (again)'))
     
     def clean_username(self):