Cannot generate admin password by leaving the field blank in set-admin-password

Open Beginner friendly
#511 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
75/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
python
Domain
cli

Research direction

Start at the set-admin-password command entry point and reproduce the blank-input path with pilot -b dev-bench set-admin-password. Trace how an empty response is validated versus how generated passwords are handled. Done means pressing Enter generates a secure password meeting the listed requirements and outputs or saves it successfully.

Written by the indexing model from the issue text.

Description

When running the set-admin-password command, the CLI prompts that the user can leave the password blank to auto-generate one. However, pressing Enter without typing a password causes the command to fail immediately with an error stating that the password must not be empty.

Steps to Reproduce

  1. Run the following command in the terminal:

pilot -b dev-bench set-admin-password

  1. When prompted for New admin password:, leave it blank and press Enter.

Expected Behavior

The system should automatically generate a secure password conforming to the listed requirements and output/save it.

Actual Behavior

The CLI exits immediately with an error:

Password requirements: at least 8 characters, with upper and lower case letters, a number, and a symbol.
Leave blank to generate one.
New admin password: 
Password must not be empty.
Dominant language
Python
Stars
107
Forks
63
Avg merge
1d 11h
Merged PRs (30d)
49

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from frappe/pilot

All issues in frappe/pilot

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.