From 7161d6293b83f359646814f2e1cdfa02e6162c2a Mon Sep 17 00:00:00 2001 From: Peter Wu Date: Thu, 7 May 2015 09:27:37 +0200 Subject: Move session key to config --- app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app.js') diff --git a/app.js b/app.js index 69abdd8..d4461db 100644 --- a/app.js +++ b/app.js @@ -20,7 +20,7 @@ mongoose.connection.on('error', function(err) { // persistence (for sessions) app.use(session({ - secret: 'Very secret', + secret: config.session_secret, store: new MongoStore({ mongooseConnection: mongoose.connection }), name: 'rvssid', saveUninitialized: false, -- cgit v1.2.1