Browse Source

migrating from u2f-api.js to webauthn

FreddlePat 3 năm trước cách đây
mục cha
commit
68abd6a535
2 tập tin đã thay đổi với 3 bổ sung2 xóa
  1. 2 1
      data/web/inc/footer.inc.php
  2. 1 1
      data/web/templates/base.twig

+ 2 - 1
data/web/inc/footer.inc.php

@@ -17,7 +17,8 @@ if (is_array($alertbox_log_parser)) {
   }
   $alert = array_filter(array_unique($alerts));
   foreach($alert as $alert_type => $alert_msg) {
-    $alerts[$alert_type] = implode('<hr class="alert-hr">', $alert_msg);
+    // html breaks from mysql alerts, replace ` with '
+    $alerts[$alert_type] = implode('<hr class="alert-hr">', str_replace("`", "'", $alert_msg));
   }
   unset($_SESSION['return']);
 }

+ 1 - 1
data/web/templates/base.twig

@@ -181,7 +181,7 @@ function recursiveBase64StrToArrayBuffer(obj) {
       backdrop: 'static',
       keyboard: false
     });
-    $('#webauthn_status_auth').html('<p><i class="bi bi-arrow-repeat icon-spin"></i> ' + lang_tfa.init_u2f + '</p>');
+    $('#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(){
       $(this).find('input[name=token]').focus();
       // If WebAuthn