Merge pull request #150 from willstott101/patch-1

Allow dots in usernames
This commit is contained in:
Ji Qu
2019-07-11 20:07:11 +08:00
committed by GitHub

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"),