|
@@ -13,7 +13,7 @@ class UserCreationForm(forms.ModelForm): |
|
|
} |
|
|
} |
|
|
username = forms.RegexField( |
|
|
username = forms.RegexField( |
|
|
label=_("Username"), max_length=30, |
|
|
label=_("Username"), max_length=30, |
|
|
regex=r'^[\w-]+$' |
|
|
|
|
|
|
|
|
regex=r'^[\w\-.]+$' |
|
|
) |
|
|
) |
|
|
password = forms.CharField( |
|
|
password = forms.CharField( |
|
|
label=_("Password"), |
|
|
label=_("Password"), |
|
|