diff --git a/changelog.md b/changelog.md index 6c0c78fe..546b22c9 100644 --- a/changelog.md +++ b/changelog.md @@ -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 diff --git a/mycli/main.py b/mycli/main.py index c0255b26..58fa4d7b 100755 --- a/mycli/main.py +++ b/mycli/main.py @@ -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,