mirror of
https://github.com/pinry/pinry.git
synced 2025-11-14 00:55:43 +01:00
Escape special regex character -
This commit is contained in:
@@ -13,7 +13,7 @@ class UserCreationForm(forms.ModelForm):
|
|||||||
}
|
}
|
||||||
username = forms.RegexField(
|
username = forms.RegexField(
|
||||||
label=_("Username"), max_length=30,
|
label=_("Username"), max_length=30,
|
||||||
regex=r'^[\w-.]+$'
|
regex=r'^[\w\-.]+$'
|
||||||
)
|
)
|
||||||
password = forms.CharField(
|
password = forms.CharField(
|
||||||
label=_("Password"),
|
label=_("Password"),
|
||||||
|
|||||||
Reference in New Issue
Block a user