debug zeile entfernt

This commit is contained in:
Klaas 2024-05-29 20:23:44 +02:00
parent fcd7532702
commit 13db1314c4
1 changed files with 0 additions and 1 deletions

1
app.js
View File

@ -225,7 +225,6 @@ app.post('/login', async (req, res) => {
const { username, password } = req.body;
try {
const userResult = await pool.query("SELECT *, CASE WHEN admin_temp IS NOT NULL AND (now() - admin_temp) > interval '22 hours' THEN 'expired' ELSE 'valid' END AS admin_status FROM users WHERE username = $1", [ username]);
console.log(userResult.rows[0]);
if (userResult.rows.length > 0) {
const user = userResult.rows[0];
const match = await bcrypt.compare(password, user.password);