From 9d427df4e348fa01d9b8ba0648a7525f85c07bce Mon Sep 17 00:00:00 2001 From: Ninjdai Date: Tue, 12 Dec 2023 14:44:02 +0100 Subject: [PATCH] Move login pages inside a common folder --- src/html/pages/root/{ => login}/login_get.js | 0 src/html/pages/root/{ => login}/login_post.js | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename src/html/pages/root/{ => login}/login_get.js (100%) rename src/html/pages/root/{ => login}/login_post.js (93%) diff --git a/src/html/pages/root/login_get.js b/src/html/pages/root/login/login_get.js similarity index 100% rename from src/html/pages/root/login_get.js rename to src/html/pages/root/login/login_get.js diff --git a/src/html/pages/root/login_post.js b/src/html/pages/root/login/login_post.js similarity index 93% rename from src/html/pages/root/login_post.js rename to src/html/pages/root/login/login_post.js index 528cef8..54465ac 100644 --- a/src/html/pages/root/login_post.js +++ b/src/html/pages/root/login/login_post.js @@ -3,7 +3,7 @@ export default { type: "post", async execute(request, response) { const { username, password } = request.body; - console.log(request.body); + //console.log(request.body); global.database.users.findOne({ where: { username: username } }).then(async function (user) { if (!user) { response.redirect('/login');