Opened 17 years ago

Closed 16 years ago

#3165 closed defect (fixed)

[patch] Auth System username prompt doesn't match what it accepts (does not allow underscores)

Reported by: cmgreen@… Owned by: nobody
Component: contrib.admin Version: dev
Severity: normal Keywords: username admin djangoadmin
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Using the current SVN, I ran my first syncdb and it didn't accept an underscore when it says it does.

You just installed Django's auth system, which means you don't have any superusers defined.
Would you like to create one now? (yes/no): yes
Username (Leave blank to use 'cmgreen'): !cmgreen
Error: That username is invalid. Use only letters, digits and underscores.
Username (Leave blank to use 'cmgreen'): _cmgreen
Error: That username is invalid. Use only letters, digits and underscores.
Username (Leave blank to use 'cmgreen'): cmgreen_
Error: That username is invalid. Use only letters, digits and underscores.
Username (Leave blank to use 'cmgreen'): cmgreen_
Error: That username is invalid. Use only letters, digits and underscores.
Username (Leave blank to use 'cmgreen'): cmgreen77
E-mail address: cmgreen@…

Attachments (1)

createsuperuser.patch (939 bytes ) - added by Chris Beaven 17 years ago.
Assuming the validation message should stay the same, here's the fix

Download all attachments as: .zip

Change History (6)

by Chris Beaven, 17 years ago

Attachment: createsuperuser.patch added

Assuming the validation message should stay the same, here's the fix

comment:1 by Chris Beaven, 17 years ago

Summary: Auth System username prompt doesn't match what it accepts[patch] Auth System username prompt doesn't match what it accepts

comment:2 by Simon G. <dev@…>, 17 years ago

Keywords: username admin djangoadmin added
Triage Stage: UnreviewedDesign decision needed

Either the prompt needs to be changed to just letters/numbers or the validator needs to be fixed (as per SmileyChris's patch).

comment:3 by Simon G. <dev@…>, 17 years ago

Summary: [patch] Auth System username prompt doesn't match what it accepts[patch] Auth System username prompt doesn't match what it accepts (does not allow underscores)

comment:4 by Jacob, 16 years ago

Triage Stage: Design decision neededReady for checkin

comment:5 by Gary Wilson, 16 years ago

Resolution: fixed
Status: newclosed

in [7018].

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