Browse Source

Update new password prompt (#7495)

No longer prompts for new password if --new_password parameter is used
patch-4
Bradley Ray 3 years ago
committed by GitHub
parent
commit
90e906aba2
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      run_electrum

2
run_electrum

@ -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

Loading…
Cancel
Save