From 23d6cf90aecf453d408480b080840bc7768242ce Mon Sep 17 00:00:00 2001 From: FreddlePat Date: Thu, 13 Jan 2022 19:12:13 +0100 Subject: [PATCH] migrating from u2f-api.js to webauthn [apple faceid bug fix] --- data/web/templates/base.twig | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/data/web/templates/base.twig b/data/web/templates/base.twig index f16dbaac..b7c0138f 100644 --- a/data/web/templates/base.twig +++ b/data/web/templates/base.twig @@ -181,8 +181,11 @@ function recursiveBase64StrToArrayBuffer(obj) { backdrop: 'static', keyboard: false }); - $('#webauthn_status_auth').html('

' + lang_tfa.init_webauthn + '

'); - $('#ConfirmTFAModal').on('shown.bs.modal', function(){ + + $('#webauthn_status_auth').html('

Press to start authentication

'); + $('#start_webauthn_confirmation').click(function(){ + $('#webauthn_status_auth').html('

' + lang_tfa.init_webauthn + '

'); + $(this).find('input[name=token]').focus(); // If WebAuthn if(document.getElementById("webauthn_auth_data") !== null) {