Consistent regex for django.contrib.auth.forms.AuthenticationForm
|Reported by:||Richard Davies <richard.davies@…>||Owned by:||nobody|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
In django/contrib/auth/forms.py, two out of three forms validate the username with a regex (UserCreationForm, UserChangeForm), but the third (AuthenticationForm) does not.
This patch copies the same regex to apply in that form too.
Change History (3)
Changed 7 years ago by Richard Davies <richard.davies@…>
comment:1 Changed 6 years ago by Alex
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
- Triage Stage changed from Unreviewed to Accepted