mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-02-17 01:52:02 +00:00
apps.homescreen: handle Ping.pin_protection
This commit is contained in:
parent
b45fd349f5
commit
64dad27abe
@ -4,7 +4,7 @@ from trezor.messages.wire_types import Initialize, GetFeatures, Ping
|
|||||||
|
|
||||||
|
|
||||||
async def respond_Features(session_id, msg):
|
async def respond_Features(session_id, msg):
|
||||||
from ..common import storage, coins
|
from apps.common import storage, coins
|
||||||
from trezor.messages.Features import Features
|
from trezor.messages.Features import Features
|
||||||
|
|
||||||
f = Features()
|
f = Features()
|
||||||
@ -27,12 +27,17 @@ async def respond_Features(session_id, msg):
|
|||||||
|
|
||||||
async def respond_Pong(session_id, msg):
|
async def respond_Pong(session_id, msg):
|
||||||
from trezor.messages.Success import Success
|
from trezor.messages.Success import Success
|
||||||
|
|
||||||
s = Success()
|
s = Success()
|
||||||
s.message = msg.message
|
s.message = msg.message
|
||||||
|
|
||||||
|
if msg.pin_protection:
|
||||||
|
from apps.common.request_pin import protect_by_pin
|
||||||
|
await protect_by_pin(session_id)
|
||||||
|
|
||||||
# TODO: handle other fields:
|
# TODO: handle other fields:
|
||||||
# button_protection
|
# button_protection
|
||||||
# passphrase_protection
|
# passphrase_protection
|
||||||
# pin_protection
|
|
||||||
return s
|
return s
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user