#25617: Disallow usernames that differ only in case in UserCreationForm
------------------------------------------------+------------------------
Reporter: timgraham | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: contrib.auth | Version: master
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
------------------------------------------------+------------------------
Most applications don't treat user names as case sensitive. While we can't
treat usernames as case-insensitive everywhere in Django due to backwards
compatibility (#2273), by using `username__iexact` when checking for
uniqueness of new usernames in `UserCreationForm`, we can at least prevent
the creation of new usernames that differ only in case from an existing
one. This protection won't cover creating a user in the shell or through
the `createsuperuser` management command, but I don't think this is
critical.
This wouldn't affect any usernames that already exist, and users will
still need to login with the same case that they register with.
--
Ticket URL: <https://code.djangoproject.com/ticket/25617>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/052.1ee421a6be9a25113ef4430523a59295%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.