Self hosted FLOSS fitness/workout, nutrition and weight tracker
Fix regular expression used to create new users
Roland Geideraebdc2641760
diff --git a/wger/core/forms.py b/wger/core/forms.pyindex ec84e6444..1343bbc90 100644--- a/wger/core/forms.py+++ b/wger/core/forms.py@@ -97,9 +97,9 @@ class GymUserAddForm(UserPersonalInformationForm):initial=USER)username = forms.RegexField(label=_("Username"),max_length=30,- regex=r'^[\w.@-]$',+ regex=r'^[\w.@+-]+$',help_text=_("Required. 30 characters or fewer. Letters, digits and "- "@/.//-/_ only."),+ "@/./+/-/_ only."),error_messages={'invalid': _("This value may contain only letters, numbers and ""@/.//-/_ characters.")})