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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
users/forms.py
|
|
@@ -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"), |
|
|
|