Opened 7 years ago

Closed 7 years ago

Last modified 5 years ago

#13569 closed (fixed)

Superuser auto-creation rejects usernames with '@', '-' or '+' characters

Reported by: steve@… Owned by: nobody
Component: Uncategorized Version: 1.2
Severity: Keywords:
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

Despite the change that allows username fields to now contain '@', '-' or '+', the auto-creation system still fails with an error:

I created a new project and app and ran a syncdb and got the following:

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 'root'): steve@…
Error: That username is invalid. Use only letters, digits and underscores.

Change History (3)

comment:1 Changed 7 years ago by Russell Keith-Magee

milestone: 1.3
Triage Stage: UnreviewedAccepted

comment:2 Changed 7 years ago by Jannis Leidel

Resolution: fixed
Status: newclosed

(In [13297]) Fixed #13569 -- Fixed createsuperuser management command to work with the new relaxed requirements for usernames.

comment:3 Changed 5 years ago by Jacob

milestone: 1.3

Milestone 1.3 deleted

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