From 8a9bfd4c437e65740efb2d06794ce2eacd795a3d Mon Sep 17 00:00:00 2001 From: ChrisChrome Date: Sun, 31 Aug 2025 11:14:49 -0600 Subject: [PATCH] Maybe it works now? --- routes/login.js | 1 + 1 file changed, 1 insertion(+) diff --git a/routes/login.js b/routes/login.js index 3fc94e0..ecdbaff 100644 --- a/routes/login.js +++ b/routes/login.js @@ -24,6 +24,7 @@ router.post('/', (req, res) => { console.log(req.body) if (!username || !password) return res.status(400).render('login', { error: 'Username and password are required.' }); db.query('SELECT * FROM users WHERE username = ?', [username]).then(async (user) => { + user = user[0]; console.log(user); //res.send("Test") // This is the original code, commented out for debugging