Browse Source

[WebAuthn] fix reload

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

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

@@ -385,7 +385,7 @@ function recursiveBase64StrToArrayBuffer(obj) {
             }).then(json => {
                 if (json.success) {
                     // reload on success
-                    window.location.href = window.location.href;
+                    window.location = window.location.href.split("#")[0];
                 } else {
                     throw new Error(json.msg);
                 }