mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-26 09:28:13 +00:00
core: handle removal of non-existing PIN in require_confirm_change_pin
This commit is contained in:
parent
adcaf83eb2
commit
40c66e6d85
@ -74,3 +74,6 @@ def require_confirm_change_pin(ctx: wire.Context, msg: ChangePin) -> None:
|
|||||||
text.normal("Do you really want to")
|
text.normal("Do you really want to")
|
||||||
text.bold("enable PIN protection?")
|
text.bold("enable PIN protection?")
|
||||||
return require_confirm(ctx, text)
|
return require_confirm(ctx, text)
|
||||||
|
|
||||||
|
# removing non-existing PIN
|
||||||
|
raise wire.ProcessError("PIN protection already disabled")
|
||||||
|
Loading…
Reference in New Issue
Block a user