diff options
Diffstat (limited to 'registration/forms.py')
-rw-r--r-- | registration/forms.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/registration/forms.py b/registration/forms.py index f2298ac..2f591d4 100644 --- a/registration/forms.py +++ b/registration/forms.py @@ -65,6 +65,8 @@ class RegistrationForm(forms.Form): if 'password1' in self.cleaned_data and 'password2' in self.cleaned_data: if self.cleaned_data['password1'] != self.cleaned_data['password2']: raise forms.ValidationError(_(u'You must type the same password each time')) + if len(self.cleaned_data['password1']) < 6: + raise forms.ValidationError(_(u'Your password must be at least 6 characters')) return self.cleaned_data def save(self): |