configuring express session to use a secret defined in the config file,

not a hard coded one
This commit is contained in:
Julian Lam
2013-05-01 16:27:57 -04:00
parent 924618fc29
commit 70d3105a8e
2 changed files with 2 additions and 1 deletions

View File

@@ -29,7 +29,7 @@ var express = require('express'),
client: redisServer,
ttl: 60*60*24*14
}),
secret: 'nodebb',
secret: config.secret,
key: 'express.sid'
}));
app.use(function(req, res, next) {