I pushed 💩

This commit is contained in:
Thomas Forgione 2017-09-30 11:31:29 +02:00
parent 38bc43e3e7
commit 5ad9d41eca
No known key found for this signature in database
GPG Key ID: 3B8FC64F5BBFE109
1 changed files with 3 additions and 9 deletions

View File

@ -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();
});