Skip to content

Commit 4683ad4

Browse files
committed
Merge branch 'issue#444' into paralapraca
2 parents 7cb9f45 + 6550584 commit 4683ad4

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

accounts/forms.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,8 @@ def clean_username(self):
4141
def clean_password2(self):
4242
password1 = self.cleaned_data.get('password1')
4343
password2 = self.cleaned_data.get('password2')
44-
if password1 and password2:
45-
if password1 != password2:
46-
raise forms.ValidationError(_("The two password fields didn't match."))
44+
if password1 != password2:
45+
raise forms.ValidationError(_("The two password fields didn't match."))
4746
return password2
4847

4948
def save(self, commit=True):

0 commit comments

Comments
 (0)