mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-08 06:20:56 +00:00
apps/homescreen: add pin_protection to Features
Fixes WipeDevice test.
This commit is contained in:
parent
db9ac661f9
commit
dc7d7bb3bd
@ -1,3 +1,4 @@
|
|||||||
|
from trezor import config
|
||||||
from trezor.wire import register, protobuf_workflow
|
from trezor.wire import register, protobuf_workflow
|
||||||
from trezor.utils import unimport
|
from trezor.utils import unimport
|
||||||
from trezor.messages.wire_types import Initialize, GetFeatures, Ping
|
from trezor.messages.wire_types import Initialize, GetFeatures, Ping
|
||||||
@ -22,7 +23,7 @@ async def respond_Features(ctx, msg):
|
|||||||
f.label = storage.get_label()
|
f.label = storage.get_label()
|
||||||
f.initialized = storage.is_initialized()
|
f.initialized = storage.is_initialized()
|
||||||
f.passphrase_protection = storage.has_passphrase()
|
f.passphrase_protection = storage.has_passphrase()
|
||||||
f.pin_protection = False
|
f.pin_protection = config.has_pin()
|
||||||
f.language = 'english'
|
f.language = 'english'
|
||||||
|
|
||||||
return f
|
return f
|
||||||
|
Loading…
Reference in New Issue
Block a user