Authored by htoooth

fix session

... ... @@ -31,9 +31,9 @@ module.exports = () => {
return this.uid;
},
uid: cookie.getUid(req),
session: req.cookies._SESSION,
sessionKey: req.cookies._SESSION,
isValid() {
return this.uid && this.session;
return this.uid && this.sessionKey;
}
};
}
... ...