Commits

Anonymous committed 93239b2

fixed username regular expression to match django's

  • Participants
  • Parent commits 97768d9

Comments (0)

Files changed (1)

registration/forms.py

     registration backend.
     
     """
-    username = forms.RegexField(regex=r'^\w+$',
+    username = forms.RegexField(regex=r'^[\w.@+-]+$',
                                 max_length=30,
                                 widget=forms.TextInput(attrs=attrs_dict),
                                 label=_("Username"),