taninos katze
All checks were successful
fetch npm modules / f0ck the f0cker (push) Successful in 30s

This commit is contained in:
x
2025-08-14 00:14:59 +02:00
parent b1e8af8ced
commit 334db9e766

View File

@@ -26,9 +26,9 @@ export default (router, tpl) => {
limit 1 limit 1
`; `;
if(user.length === 0) if(user.length === 0)
return res.reply({ body: "user doesn't exist or wrong password" }); return res.status(401).reply({ body: "user doesn't exist or wrong password" });
if(!(await lib.verify(req.post.password, user[0].password))) if(!(await lib.verify(req.post.password, user[0].password)))
return res.reply({ body: "user doesn't exist or wrong password" }); return res.status(401).reply({ body: "user doesn't exist or wrong password" });
const stamp = ~~(Date.now() / 1e3); const stamp = ~~(Date.now() / 1e3);
await db` await db`