Django

Code

Ticket #3165 (closed: fixed)

Opened 3 years ago

Last modified 2 years ago

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

Reported by: cmgreen@uab.edu Assigned to: nobody
Milestone: Component: django.contrib.admin
Version: SVN Keywords: username admin djangoadmin
Cc: Triage Stage: Ready for checkin
Has patch: 1 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

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@uab.edu

Attachments

createsuperuser.patch (0.9 kB) - added by SmileyChris on 12/18/06 18:38:28.
Assuming the validation message should stay the same, here's the fix

Change History

12/18/06 18:38:28 changed by SmileyChris

  • attachment createsuperuser.patch added.

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

12/18/06 18:39:33 changed by SmileyChris

  • summary changed from Auth System username prompt doesn't match what it accepts to [patch] Auth System username prompt doesn't match what it accepts.

01/19/07 18:53:41 changed by Simon G. <dev@simon.net.nz>

  • keywords set to username admin djangoadmin.
  • stage changed from Unreviewed to Design 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).

01/19/07 18:54:15 changed by Simon G. <dev@simon.net.nz>

  • summary changed from [patch] Auth System username prompt doesn't match what it accepts to [patch] Auth System username prompt doesn't match what it accepts (does not allow underscores).

12/01/07 08:04:00 changed by jacob

  • stage changed from Design decision needed to Ready for checkin.

01/12/08 22:04:06 changed by gwilson

  • status changed from new to closed.
  • resolution set to fixed.

in [7018].


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




Change Properties
Action