mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-27 15:31:31 +00:00
fix #6017
This commit is contained in:
parent
fa0ef9c548
commit
a059fa0c1f
1 changed files with 12 additions and 6 deletions
|
@ -1149,16 +1149,22 @@ class InstallWizard(BaseWizard, Widget):
|
||||||
# do not request PIN for watching-only wallets
|
# do not request PIN for watching-only wallets
|
||||||
run_next(None, False)
|
run_next(None, False)
|
||||||
return
|
return
|
||||||
def on_success(old_pin, pin):
|
def on_success(old_pw, pw):
|
||||||
assert old_pin is None
|
assert old_pw is None
|
||||||
run_next(pin, True)
|
run_next(pw, True)
|
||||||
def on_failure():
|
def on_failure():
|
||||||
self.show_error(_('PIN mismatch'))
|
self.show_error(_('Password mismatch'))
|
||||||
self.run('request_password', run_next)
|
self.run('request_password', run_next)
|
||||||
popup = PasswordDialog()
|
popup = PasswordDialog()
|
||||||
app = App.get_running_app()
|
app = App.get_running_app()
|
||||||
popup.init(app, wallet=None, msg=_('Choose PIN code'),
|
popup.init(
|
||||||
on_success=on_success, on_failure=on_failure, is_change=2)
|
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()
|
popup.open()
|
||||||
|
|
||||||
def action_dialog(self, action, run_next):
|
def action_dialog(self, action, run_next):
|
||||||
|
|
Loading…
Add table
Reference in a new issue