migration to postgresql
This commit is contained in:
@@ -29,7 +29,7 @@ export default (router, tpl) => {
|
||||
return res.reply({ body: "user doesn't exist or wrong password" });
|
||||
if(!(await lib.verify(req.post.password, user[0].password)))
|
||||
return res.reply({ body: "user doesn't exist or wrong password" });
|
||||
const stamp = Date.now() / 1e3;
|
||||
const stamp = ~~(Date.now() / 1e3);
|
||||
|
||||
const session = lib.md5(lib.createID());
|
||||
await sql("user_sessions").insert({
|
||||
|
Reference in New Issue
Block a user