1. Mark IJbema
  2. django-registration

Commits

James Bennett  committed 6d2e42a

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

  • Participants
  • Parent commits baff315
  • Branches default

Comments (0)

Files changed (1)

File registration/forms.py

View file
  • Ignore whitespace
     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"),