1
0

Update new password prompt (#7495)

No longer prompts for new password if --new_password parameter is used
This commit is contained in:
Bradley Ray
2021-09-10 18:19:06 -05:00
committed by GitHub
parent bf6400ae30
commit 90e906aba2

View File

@@ -166,7 +166,7 @@ def init_cmdline(config_options, wallet_path, server, *, config: 'SimpleConfig')
config_options['password'] = config_options.get('password') or password
if cmd.name == 'password':
if cmd.name == 'password' and 'new_password' not in config_options:
new_password = prompt_password('New password:')
config_options['new_password'] = new_password