1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-16 19:38:09 +00:00

apps/management/load_device: fix load_mnemonic

This commit is contained in:
Jan Pochyla 2018-02-05 15:13:48 +01:00
parent 58f48f8ade
commit 32c74e6e9a

View File

@ -24,9 +24,10 @@ async def layout_load_device(ctx, msg):
ui.BOLD, 'Loading private seed', 'is not recommended.', ui.BOLD, 'Loading private seed', 'is not recommended.',
ui.NORMAL, 'Continue only if you', 'know what you are doing!')) ui.NORMAL, 'Continue only if you', 'know what you are doing!'))
storage.load_mnemonic(msg.mnemonic) storage.load_mnemonic(
storage.load_settings(use_passphrase=msg.passphrase_protection, mnemonic=msg.mnemonic, needs_backup=True)
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)