Skip to content

Commit 05930ca

Browse files
author
lucifer
committed
fix: cookie
1 parent b078e4e commit 05930ca

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

middleware/passport.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ module.exports = async function checkAuth(ctx, next) {
2828

2929
if (db.find((q) => q.login === duser.login)) {
3030
ctx.session.user = duser;
31+
next();
3132
return;
3233
}
3334
} catch (err) {

0 commit comments

Comments
 (0)