Add env variable for session secret
This commit is contained in:
@@ -198,7 +198,7 @@ module.exports = async function(robot, kredits) {
|
||||
}
|
||||
};
|
||||
|
||||
robot.router.use(session({secret: 'grant'}));
|
||||
robot.router.use(session({ secret: process.env.SESSION_SECRET || 'grant' }));
|
||||
robot.router.use('/kredits/signup', grant(grantConfig));
|
||||
|
||||
robot.router.get('/kredits/signup/github', async (req, res) => {
|
||||
|
||||
Reference in New Issue
Block a user