Explorar el Código

migrating from u2f-api.js to webauthn [apple faceid bug fix]

FreddlePat hace 3 años
padre
commit
23d6cf90ae
Se han modificado 1 ficheros con 5 adiciones y 2 borrados
  1. 5 2
      data/web/templates/base.twig

+ 5 - 2
data/web/templates/base.twig

@@ -181,8 +181,11 @@ function recursiveBase64StrToArrayBuffer(obj) {
       backdrop: 'static',
       backdrop: 'static',
       keyboard: false
       keyboard: false
     });
     });
-    $('#webauthn_status_auth').html('<p><i class="bi bi-arrow-repeat icon-spin"></i> ' + lang_tfa.init_webauthn + '</p>');
-    $('#ConfirmTFAModal').on('shown.bs.modal', function(){
+
+    $('#webauthn_status_auth').html('<p>Press to start authentication</p>');
+    $('#start_webauthn_confirmation').click(function(){
+      $('#webauthn_status_auth').html('<p><i class="bi bi-arrow-repeat icon-spin"></i> ' + lang_tfa.init_webauthn + '</p>');
+
       $(this).find('input[name=token]').focus();
       $(this).find('input[name=token]').focus();
       // If WebAuthn
       // If WebAuthn
       if(document.getElementById("webauthn_auth_data") !== null) {
       if(document.getElementById("webauthn_auth_data") !== null) {