I pushed 💩
This commit is contained in:
parent
38bc43e3e7
commit
5ad9d41eca
12
index.js
12
index.js
|
@ -40,15 +40,9 @@ function startServer() {
|
|||
log.request(req, res, Date.now() - start);
|
||||
});
|
||||
res.locals.session = req.session;
|
||||
// if (req.session.user !== undefined) {
|
||||
// req.session.user = User.fromJSON(req.session.user);
|
||||
// }
|
||||
req.session.user = {
|
||||
username: "thomas",
|
||||
_username: {
|
||||
value: "thomas",
|
||||
},
|
||||
};
|
||||
if (req.session.user !== undefined) {
|
||||
req.session.user = User.fromJSON(req.session.user);
|
||||
}
|
||||
|
||||
next();
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue