From ff1278225a3931432c5d2559ef25116134ea1cf8 Mon Sep 17 00:00:00 2001 From: Bobby Date: Wed, 28 Dec 2022 09:16:49 -0500 Subject: Register form fixed many times till now. This is another attempt --- users/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'users') diff --git a/users/forms.py b/users/forms.py index de13fe27..aebad567 100644 --- a/users/forms.py +++ b/users/forms.py @@ -12,7 +12,7 @@ from django.utils.http import urlsafe_base64_encode from .tokens import account_activation_token class RegisterForm(forms.Form): - username = forms.CharField(label='Username', max_length=30) + username = forms.CharField(label='Username', max_length=30, min_length=4) email = forms.EmailField(label='Email') password1 = forms.CharField(label='Password', widget=forms.PasswordInput) password2 = forms.CharField(label='Password (again)', widget=forms.PasswordInput) -- cgit v1.2.3