mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-20 12:21:01 +00:00
core/webauthn: Remove AUTOCONFIRM option.
This commit is contained in:
parent
e64cb49915
commit
8ce8916beb
@ -214,8 +214,6 @@ _ALLOW_RESIDENT_CREDENTIALS = True
|
|||||||
# The attestation type to use in MakeCredential responses. If false, then self attestation will be used.
|
# The attestation type to use in MakeCredential responses. If false, then self attestation will be used.
|
||||||
_USE_BASIC_ATTESTATION = False
|
_USE_BASIC_ATTESTATION = False
|
||||||
|
|
||||||
_AUTOCONFIRM = False
|
|
||||||
|
|
||||||
|
|
||||||
class CborError(Exception):
|
class CborError(Exception):
|
||||||
def __init__(self, code: int):
|
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:
|
async def confirm(*args: Any, **kwargs: Any) -> bool:
|
||||||
if _AUTOCONFIRM:
|
|
||||||
return True
|
|
||||||
dialog = Confirm(*args, **kwargs)
|
dialog = Confirm(*args, **kwargs)
|
||||||
if __debug__:
|
if __debug__:
|
||||||
return await loop.race(dialog, confirm_signal()) is CONFIRMED
|
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:
|
async def confirm_pageable(*args: Any, **kwargs: Any) -> bool:
|
||||||
if _AUTOCONFIRM:
|
|
||||||
return True
|
|
||||||
dialog = ConfirmPageable(*args, **kwargs)
|
dialog = ConfirmPageable(*args, **kwargs)
|
||||||
if __debug__:
|
if __debug__:
|
||||||
return await loop.race(dialog, confirm_signal()) is CONFIRMED
|
return await loop.race(dialog, confirm_signal()) is CONFIRMED
|
||||||
|
Loading…
Reference in New Issue
Block a user