Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added secret to generated app

  • Loading branch information...
commit 28361c9279ab182de5d03d3cb6209af017020163 1 parent 82e15cf
TJ Holowaychuk tj authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  bin/express
2  bin/express
View
@@ -321,7 +321,7 @@ function createApplicationAt(path) {
// Session support
app = app.replace(':SESS', sessions
- ? '\n app.use(express.cookieDecoder());\n app.use(express.session());'
+ ? '\n app.use(express.cookieDecoder());\n app.use(express.session({ secret: \'your secret here\' }));'
: '');
// Template support
Please sign in to comment.
Something went wrong with that request. Please try again.