From b5ee1e65357515bf4f1517c3212bd9e24107a835 Mon Sep 17 00:00:00 2001 From: Expand-sys Date: Fri, 2 Jul 2021 09:13:55 +1000 Subject: [PATCH] idk what this commit is but it shouldnt break things lol --- index.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index 3c54f88..f5f4298 100644 --- a/index.js +++ b/index.js @@ -267,11 +267,8 @@ fastify.post("/login", async function (req, res) { } const { name, password } = req.body; let adminTest; - let verified; - try { adminTest = await client.adminVerifyPassword(password); - verified = await client.verifyPassword(name, password); } catch (err) { console.log(err); } @@ -283,6 +280,8 @@ fastify.post("/login", async function (req, res) { req.session.set("password", password); res.redirect("/BankF"); } else { + let verified; + verified = await client.verifyPassword(name, password); console.log(verified); if (verified == 1) { req.session.set("user", name);