From aae8d60ecd093971dd018669f6753cb642f5e0d0 Mon Sep 17 00:00:00 2001 From: maru21 Date: Tue, 3 Oct 2023 20:34:42 +0200 Subject: [PATCH] implemented sessionVerification --- js/9.8/scripts.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/js/9.8/scripts.js b/js/9.8/scripts.js index 65b4219..9cbde7f 100644 --- a/js/9.8/scripts.js +++ b/js/9.8/scripts.js @@ -70,7 +70,7 @@ function setPassword() { document.getElementById("login").style.display = "none"; window.sessionStorage.setItem(sha256("verified"), XORCipher.encode(sha256("passwordHash"), passwordHash)); - setCookie(sha256("verified"), XORCipher.encode(sha256("passwordHash"), passwordHash.toString()), 10) + setCookie(sha256("verified"), XORCipher.encode(sha256("passwordHash"), passwordHash), 10) } } @@ -107,11 +107,14 @@ export function sessionVerification() { verfiedStatus = null; } + console.log(vsString); + console.log(pnString); + let tF = retrieveData("templateFiles"); try { tF = JSON.parse(tF); } catch(e) { - verfiedStatus = null; + //verfiedStatus = null; } if (verfiedStatus == null) {