From 8ce8916beb66d1c6ee672c106714f6fc34397fda Mon Sep 17 00:00:00 2001 From: Andrew Kozlik Date: Fri, 4 Oct 2019 17:32:02 +0200 Subject: [PATCH] core/webauthn: Remove AUTOCONFIRM option. --- core/src/apps/webauthn/fido2.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/core/src/apps/webauthn/fido2.py b/core/src/apps/webauthn/fido2.py index f3adb16277..56407f095b 100644 --- a/core/src/apps/webauthn/fido2.py +++ b/core/src/apps/webauthn/fido2.py @@ -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