mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-02-09 14:12:51 +00:00
core: handle removal of non-existing PIN in require_confirm_change_pin
(cherry picked from commit 40c66e6d85
)
This commit is contained in:
parent
e23dadc010
commit
1877fd4ee9
@ -58,3 +58,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")
|
||||
|
Loading…
Reference in New Issue
Block a user