Selaa lähdekoodia
Merge pull request #150 from willstott101/patch-1
Allow dots in usernames
pull/153/head
Ji Qu
5 vuotta sitten
committed by
GitHub
vanhempi
commit
51c2050c77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 muutettua tiedostoa jossa
1 lisäystä ja
1 poistoa
-
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"), |
|
|
|