Maybe it works now?
This commit is contained in:
parent
d21b891201
commit
8a9bfd4c43
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue