1
0
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:
Pavol Rusnak 2019-09-25 17:35:14 +00:00
parent e23dadc010
commit 1877fd4ee9
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -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")