1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-01-03 12:00:59 +00:00

core/webauthn: Remove AUTOCONFIRM option.

This commit is contained in:
Andrew Kozlik 2019-10-04 17:32:02 +02:00
parent e64cb49915
commit 8ce8916beb

View File

@ -214,8 +214,6 @@ _ALLOW_RESIDENT_CREDENTIALS = True
# The attestation type to use in MakeCredential responses. If false, then self attestation will be used.
_USE_BASIC_ATTESTATION = False
_AUTOCONFIRM = False
class CborError(Exception):
def __init__(self, code: int):
@ -543,8 +541,6 @@ async def verify_user(keepalive_callback: KeepaliveCallback) -> bool:
async def confirm(*args: Any, **kwargs: Any) -> bool:
if _AUTOCONFIRM:
return True
dialog = Confirm(*args, **kwargs)
if __debug__:
return await loop.race(dialog, confirm_signal()) is CONFIRMED
@ -553,8 +549,6 @@ async def confirm(*args: Any, **kwargs: Any) -> bool:
async def confirm_pageable(*args: Any, **kwargs: Any) -> bool:
if _AUTOCONFIRM:
return True
dialog = ConfirmPageable(*args, **kwargs)
if __debug__:
return await loop.race(dialog, confirm_signal()) is CONFIRMED