Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 10 additions & 9 deletions core/src/apps/common/request_pin.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,15 +231,16 @@ async def verify_user_pin(
except Exception:
raise wire.PinCancelled("cal cale ..")

if verified and pin_use_type in (
PinType.USER,
PinType.PASSPHRASE_PIN,
PinType.USER_AND_PASSPHRASE_PIN,
):
if usertype == PinResult.PASSPHRASE_PIN_ENTERED:
device.set_passphrase_pin_enabled(True)
elif usertype == PinResult.USER_PIN_ENTERED:
device.set_passphrase_pin_enabled(False)
if verified:
if pin_use_type in (
PinType.USER,
PinType.PASSPHRASE_PIN,
PinType.USER_AND_PASSPHRASE_PIN,
):
if usertype == PinResult.PASSPHRASE_PIN_ENTERED:
device.set_passphrase_pin_enabled(True)
elif usertype == PinResult.USER_PIN_ENTERED:
device.set_passphrase_pin_enabled(False)

if re_loop:
loop.clear()
Expand Down
Loading