debug zeile entfernt
This commit is contained in:
parent
fcd7532702
commit
13db1314c4
1
app.js
1
app.js
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue