Permalink
Browse files

Added a session secret (luebken)

  • Loading branch information...
1 parent afc1eba commit 719afcfe97ac227eb7708d6f29a4cd2132b17c2d Alex Young committed Jan 28, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 app.js
View
2 app.js
@@ -35,7 +35,7 @@ app.configure(function() {
app.use(express.favicon());
app.use(express.bodyDecoder());
app.use(express.cookieDecoder());
- app.use(express.session({ store: mongoStore(app.set('db-uri')) }));
+ app.use(express.session({ store: mongoStore(app.set('db-uri')), secret: 'topsecret' }));
app.use(express.logger({ format: '\x1b[1m:method\x1b[0m \x1b[33m:url\x1b[0m :response-time ms' }))
app.use(express.methodOverride());
app.use(express.compiler({ src: __dirname + '/public', enable: ['less'] }));

0 comments on commit 719afcf

Please sign in to comment.