revert 334db9e766
All checks were successful
fetch npm modules / f0ck the f0cker (push) Successful in 15s

revert taninos katze
This commit is contained in:
Kibi Kelburton
2025-08-13 22:22:33 +00:00
parent 334db9e766
commit a30561b31b

View File

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