Opened 17 years ago

Closed 17 years ago

Last modified 17 years ago

#6882 closed (duplicate)

Auth system should validate username on user creation.

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

Description

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 by James Bennett, 17 years ago

Resolution: duplicate
Status: newclosed

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

comment:2 by Eddie Sullivan, 17 years ago

No need to be a snot, ubernostrum

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