update dep

This commit is contained in:
masnn committed 2020-04-08 21:44:39 +08:00
1 parent 7dc31d02fa
commit 36989b1942
7 files changed
+265 -80

No files matched your search

-1
View File
@@ -45,7 +45,6 @@ MIDDLEWARE(async (ctx, next) => {
}
};
ctx.csrf_token = await token.add(token.TYPE_CSRF_TOKEN, 600, ctx.path);
console.log(ctx.session.uid);
await next();
if (ctx.session.sid)
await token.update(ctx.session.sid, tokenType, expireSeconds, Object.assign({