mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-18 05:28:40 +00:00
src/apps/management: fix storage.load_mnemonic calls
This commit is contained in:
parent
ad5aa03a2d
commit
9e3ae93796
@ -24,7 +24,7 @@ async def load_device(ctx, msg):
|
|||||||
text.normal("Continue only if you", "know what you are doing!")
|
text.normal("Continue only if you", "know what you are doing!")
|
||||||
await require_confirm(ctx, text)
|
await require_confirm(ctx, text)
|
||||||
|
|
||||||
storage.load_mnemonic(mnemonic=msg.mnemonic, needs_backup=True)
|
storage.load_mnemonic(mnemonic=msg.mnemonic, needs_backup=True, no_backup=False)
|
||||||
storage.load_settings(use_passphrase=msg.passphrase_protection, label=msg.label)
|
storage.load_settings(use_passphrase=msg.passphrase_protection, label=msg.label)
|
||||||
if msg.pin:
|
if msg.pin:
|
||||||
config.change_pin(pin_to_int(""), pin_to_int(msg.pin), None)
|
config.change_pin(pin_to_int(""), pin_to_int(msg.pin), None)
|
||||||
|
@ -47,7 +47,7 @@ async def recovery_device(ctx, msg):
|
|||||||
if msg.pin_protection:
|
if msg.pin_protection:
|
||||||
config.change_pin(pin_to_int(""), pin_to_int(newpin), None)
|
config.change_pin(pin_to_int(""), pin_to_int(newpin), None)
|
||||||
storage.load_settings(label=msg.label, use_passphrase=msg.passphrase_protection)
|
storage.load_settings(label=msg.label, use_passphrase=msg.passphrase_protection)
|
||||||
storage.load_mnemonic(mnemonic=mnemonic, needs_backup=False)
|
storage.load_mnemonic(mnemonic=mnemonic, needs_backup=False, no_backup=False)
|
||||||
return Success(message="Device recovered")
|
return Success(message="Device recovered")
|
||||||
else:
|
else:
|
||||||
if storage.get_mnemonic() == mnemonic:
|
if storage.get_mnemonic() == mnemonic:
|
||||||
|
Loading…
Reference in New Issue
Block a user