commit a059fa0c1f3655f010db30cde543ae236586982c
parent fa0ef9c5481861484b504dab5c7eb703c5edb49f
Author: ThomasV <thomasv@electrum.org>
Date: Fri, 6 Mar 2020 04:27:03 +0100
fix #6017
Diffstat:
1 file changed, 12 insertions(+), 6 deletions(-)
diff --git a/electrum/gui/kivy/uix/dialogs/installwizard.py b/electrum/gui/kivy/uix/dialogs/installwizard.py
@@ -1149,16 +1149,22 @@ class InstallWizard(BaseWizard, Widget):
# do not request PIN for watching-only wallets
run_next(None, False)
return
- def on_success(old_pin, pin):
- assert old_pin is None
- run_next(pin, True)
+ def on_success(old_pw, pw):
+ assert old_pw is None
+ run_next(pw, True)
def on_failure():
- self.show_error(_('PIN mismatch'))
+ self.show_error(_('Password mismatch'))
self.run('request_password', run_next)
popup = PasswordDialog()
app = App.get_running_app()
- popup.init(app, wallet=None, msg=_('Choose PIN code'),
- on_success=on_success, on_failure=on_failure, is_change=2)
+ popup.init(
+ app,
+ check_password=lambda x:True,
+ on_success=on_success,
+ on_failure=on_failure,
+ is_change=True,
+ is_password=True,
+ message=_('Choose a password'))
popup.open()
def action_dialog(self, action, run_next):