Browse Source

Merge pull request #150 from willstott101/patch-1

Allow dots in usernames
pull/153/head
Ji Qu 5 years ago
committed by GitHub
parent
commit
51c2050c77
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      users/forms.py

+ 1
- 1
users/forms.py 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"),


Loading…
Cancel
Save