Fix warnings from express session

This commit is contained in:
Basti 2019-09-01 17:04:19 +02:00
parent cecc632620
commit 50002194c5
No known key found for this signature in database
GPG Key ID: BE4634D632D39B67

View File

@ -197,7 +197,12 @@ module.exports = async function(robot, kredits) {
}
};
robot.router.use(session({ secret: process.env.KREDITS_SESSION_SECRET || 'grant' }));
robot.router.use(session({
secret: process.env.KREDITS_SESSION_SECRET || 'grant',
resave: false,
saveUninitialized: false
}));
robot.router.use('/kredits/signup', grant(grantConfig));
robot.router.get('/kredits/signup/github', async (req, res) => {