mirror of
https://github.com/pinry/pinry.git
synced 2025-11-13 16:45:41 +01:00
Escape special regex character -
This commit is contained in:
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user