Opened 96 minutes ago

Last modified 31 minutes ago

#36972 assigned New feature

Provide keyboard feedback in createsuperuser and changepassword commands

Reported by: Ketan Sahu Owned by: Ketan Sahu
Component: contrib.auth Version: 6.0
Severity: Normal Keywords:
Cc: Ketan Sahu, Thibaud Colas Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by Jacob Walls)

When running python manage.py createsuperuser, the password prompt currently shows:

Password:

Nothing is printed while typing (for security), but many beginners might think the terminal has frozen or the command isn’t working, since there’s no hint that the input is hidden.

Suggestion:
Update the password prompt in the createsuperuser management command to something clearer, like:

Password (input hidden):

or

Password:  [input hidden]

Benefit:

  • Makes clear that password input is working as intended, which is especially helpful for new users or beginners.
  • Prevents confusion that the terminal/command has frozen.
  • Brings Django’s CLI user experience in line with user-friendly conventions.

Contributor note:
I am ready to work on this improvement and would be happy to submit a pull request if this feature is approved or assigned to me.

Thank you for considering this suggestion!

Change History (1)

comment:1 by Jacob Walls, 31 minutes ago

Cc: Thibaud Colas added
Description: modified (diff)
Owner: set to Ketan Sahu
Status: newassigned
Summary: Improve password prompt wording in createsuperuser management commandProvide keyboard feedback in createsuperuser and changepassword commands
Triage Stage: UnreviewedAccepted
Type: Cleanup/optimizationNew feature

Accepting based on positive reception on the forum.

I'd like to reframe this to simply provide keyboard feedback via the echo_char="*" argument on Python 3.14+. I'll cross-post on the forum.

We should address createpassword at the same time as mentioned on forum.

Thanks for offering a PR.

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