Allow dots in usernames

This commit is contained in:
Will Stott
2019-07-04 15:16:27 +01:00
committed by GitHub
parent 6a86482512
commit 14d2d5f2f6

View File

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