1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-13 19:18:56 +00:00

core: handle removal of non-existing PIN in require_confirm_change_pin

This commit is contained in:
Pavol Rusnak 2019-09-25 17:35:14 +00:00
parent adcaf83eb2
commit 40c66e6d85
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -74,3 +74,6 @@ def require_confirm_change_pin(ctx: wire.Context, msg: ChangePin) -> None:
text.normal("Do you really want to")
text.bold("enable PIN protection?")
return require_confirm(ctx, text)
# removing non-existing PIN
raise wire.ProcessError("PIN protection already disabled")