Code

Opened 4 years ago

Closed 4 years ago

Last modified 3 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.

Attachments (0)

Change History (3)

comment:1 Changed 4 years ago by russellm

  • milestone set to 1.3
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted

comment:2 Changed 4 years ago by jezdez

  • Resolution set to fixed
  • Status changed from new to closed

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

comment:3 Changed 3 years ago by jacob

  • milestone 1.3 deleted

Milestone 1.3 deleted

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.