mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-03-05 19:51:08 +01:00
* fix(express): updating express session name variable due to deprecation
* fix(express): updating express session name variable from key (the old deprecated one) to the new variable: name * fix(express): re-wording confusing comment on the session cookie name
This commit is contained in:
3
config/env/default.js
vendored
3
config/env/default.js
vendored
@@ -24,8 +24,7 @@ module.exports = {
|
||||
},
|
||||
// sessionSecret should be changed for security measures and concerns
|
||||
sessionSecret: process.env.SESSION_SECRET || 'MEAN',
|
||||
// sessionKey is set to the generic sessionId key used by PHP applications
|
||||
// for obsecurity reasons
|
||||
// sessionKey is the cookie session name
|
||||
sessionKey: 'sessionId',
|
||||
sessionCollection: 'sessions',
|
||||
// Lusca config
|
||||
|
||||
@@ -120,7 +120,7 @@ module.exports.initSession = function (app, db) {
|
||||
httpOnly: config.sessionCookie.httpOnly,
|
||||
secure: config.sessionCookie.secure && config.secure.ssl
|
||||
},
|
||||
key: config.sessionKey,
|
||||
name: config.sessionKey,
|
||||
store: new MongoStore({
|
||||
mongooseConnection: db.connection,
|
||||
collection: config.sessionCollection
|
||||
|
||||
Reference in New Issue
Block a user