Commits

James Bennett committed 6d2e42a

Fix #80: Use the same username regex as django.contrib.auth.

  • Participants
  • Parent commits baff315

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"),