Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#6882 closed (duplicate)

Auth system should validate username on user creation.

Reported by: Eddie Sullivan Owned by: nobody
Component: Contrib apps Version: master
Severity: Keywords: auth
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


According to the documentation for the Authorization system, a username must consist of "Alphanumeric characters only (letters, digits and underscores)."

This seems to be only selectively enforced. I can easily create a username with spaces in it using User.objects.create_user. Everything seems fine for most things, but once in a while a problem will occur, such as when trying to make changes to the user in the admin interface, where the no-space rule is enforced (even if the username was previously set, and we want to change another field).

My request would be to add validation checking during the user creation phase, so this error can be caught earlier.

Change History (2)

comment:1 Changed 10 years ago by James Bennett

Resolution: duplicate
Status: newclosed

Duplicate of #6845. Before bringing up a major issue like this, please do search the ticket tracker.

comment:2 Changed 10 years ago by Eddie Sullivan

No need to be a snot, ubernostrum

Note: See TracTickets for help on using tickets.
Back to Top