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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
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 |
|
|
|
|
|
|
|