diff options
author | Dennis Eriksen <dennis.se@gmail.com> | 2013-05-26 10:47:33 +0200 |
---|---|---|
committer | Dennis Eriksen <dennis.se@gmail.com> | 2013-05-26 10:47:33 +0200 |
commit | 69651125efce0ebca6c96a0ff3b0534d170e12e4 (patch) | |
tree | c2fd569e660782fe2825f573becfd54511835289 | |
parent | added new logo with BLUEDUDE (diff) | |
download | Divid-69651125efce0ebca6c96a0ff3b0534d170e12e4.tar.gz |
moved session secret to config file
-rw-r--r-- | config/config.js | 3 | ||||
-rw-r--r-- | config/express.js | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/config/config.js b/config/config.js index f71fbc9..3637cf3 100644 --- a/config/config.js +++ b/config/config.js @@ -22,7 +22,8 @@ module.exports = { email: { server: 'localhost', ssl: false - } + }, + sessionSecret: 'lsdrghoi4hgqio42nqf2uqi32f3bilu23fl23b', } } diff --git a/config/express.js b/config/express.js index 4c09b17..c35a0d8 100644 --- a/config/express.js +++ b/config/express.js @@ -30,7 +30,7 @@ module.exports = function (app, config, passport) { app.use(express.methodOverride()); - app.use(express.session({ secret: 'lsdrghoi4hgqio42nqf2uqi32f3bilu23fl23b' })); + app.use(express.session({ secret: config.sessionSecret })); // use passport session app.use(passport.initialize()); |