Browse Source

add webauthn console log

FreddleSpl0it 3 years ago
parent
commit
3c9502f241
1 changed files with 1 additions and 0 deletions
  1. 1 0
      data/web/templates/base.twig

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

@@ -245,6 +245,7 @@ function recursiveBase64StrToArrayBuffer(obj) {
         window.fetch("/api/v1/get/webauthn-tfa-get-args", {method:'GET',cache:'no-cache'}).then(response => {
         window.fetch("/api/v1/get/webauthn-tfa-get-args", {method:'GET',cache:'no-cache'}).then(response => {
             return response.json();
             return response.json();
         }).then(json => {
         }).then(json => {
+          console.log(json);
           if (json.success === false) throw new Error();
           if (json.success === false) throw new Error();
           if (json.type === "error") throw new Error(json.msg);
           if (json.type === "error") throw new Error(json.msg);