这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Bug Fixes
* Guard against missing contributors file on startup.
* Friendlier errors on password-file failures.
* Better handle empty-string passwords.
* Permit empty-string passwords at the interactive prompt.


Internal
Expand Down
4 changes: 3 additions & 1 deletion mycli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,9 @@ def _connect() -> None:
if password_from_file is not None:
new_passwd = password_from_file
else:
new_passwd = click.prompt(f"Password for {user}", hide_input=True, show_default=False, type=str, err=True)
new_passwd = click.prompt(
f"Password for {user}", hide_input=True, show_default=False, default='', type=str, err=True
)
self.sqlexecute = SQLExecute(
database,
user,
Expand Down