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): diff --git a/templates/registration/activation_email.html b/templates/registration/activation_email.html index fa205ef..e8f846b 100644 --- a/templates/registration/activation_email.html +++ b/templates/registration/activation_email.html @@ -2,7 +2,7 @@
Glad you're joining the CUCC EXPO team! Please go to
-{{ site }}{% url registration_activate activation_key %}
+{{ site }}{% url registration_activate activation_key %}
to activate your account. Do this within {{ expiration_days }} days, or else you'll have to sign up again.
diff --git a/templates/registration/registration_form.html b/templates/registration/registration_form.html index 17bebf2..5720a8b 100644 --- a/templates/registration/registration_form.html +++ b/templates/registration/registration_form.html @@ -10,6 +10,9 @@ registration_form.html | {{ block.super }} {% block content %} -{% endblock %} \ No newline at end of file +{% endblock %}