From bcbe73bac216708cb70b8ff653b340e9ddd1f07f Mon Sep 17 00:00:00 2001 From: asyncnomi Date: Mon, 9 Jan 2023 00:04:25 +0100 Subject: [PATCH 1/3] bla --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index e9d860d..7f33d79 100644 --- a/index.js +++ b/index.js @@ -18,7 +18,7 @@ let PrankData = JSON.parse(fs.readFileSync(prankPath)); let ActivityData = JSON.parse(fs.readFileSync(activityPath)); let TreasureData = JSON.parse(fs.readFileSync(treasurePath)); let GoldenUsers = JSON.parse(fs.readFileSync(goldenUsersPath)); -let AdminUsersUid = ["asyncnomi", "johan", "enthalpine", "fas", "arina", "billy", "remi", "pierre", "matmaz", "mariusdrgc", "agathe", "jsansa"]; +let AdminUsersUid = ["asyncnomi", "johan", "enthalpine", "fleur", "arina", "billy", "remi", "pierre", "matmaz", "mariusdrgc", "agathe", "jsansa"]; let UsersToken = {}; let TokenDurationSecond = 3600; let MaxAmountCrepe = 10; From 71228d0fcf4ce6de0a0e6046c46ccdfab2ea7453 Mon Sep 17 00:00:00 2001 From: asyncnomi Date: Mon, 9 Jan 2023 00:10:18 +0100 Subject: [PATCH 2/3] bla --- static/js/main.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/static/js/main.js b/static/js/main.js index b7a3b2f..3d24475 100644 --- a/static/js/main.js +++ b/static/js/main.js @@ -31,8 +31,8 @@ function show_page(id, historyPush) { $("#login-button").click(function (e) { var data = JSON.stringify({ - user: $("#login").val(), - password: $("#password").val() + user: $("#login").val().trim(), + password: $("#password").val().trim() }); $("#password").val(''); $.ajax({ @@ -80,8 +80,8 @@ $("#login-button").click(function (e) { $("#register-button").click(function (e) { var data = JSON.stringify({ - user: $("#register-user").val(), - password: $("#register-password").val() + user: $("#register-user").val().trim(), + password: $("#register-password").val().trim() }); if( $("#register-password-confirm").val() != $("#register-password").val()) { t = new TypeIt('#error-message-register', { From d017e30cc5c321163333e0f65d8716aa7a863537 Mon Sep 17 00:00:00 2001 From: asyncnomi Date: Mon, 9 Jan 2023 00:15:57 +0100 Subject: [PATCH 3/3] bla --- static/js/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/main.js b/static/js/main.js index 3d24475..ed8ac63 100644 --- a/static/js/main.js +++ b/static/js/main.js @@ -221,7 +221,7 @@ function get_admin(type) { `) - } else if(prankData[entry].state == "done") { + } else if(prankData[entry].state == "Done") { doneCnt++; } break;