mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-22 00:16:15 -04:00
session key in settings file OR generate temp key for instance
This commit is contained in:
parent
5c9d081391
commit
efce99c3a1
3 changed files with 17 additions and 3 deletions
|
@ -103,7 +103,7 @@ exports.expressConfigure = function (hook_name, args, cb) {
|
|||
|
||||
if (!exports.sessionStore) {
|
||||
exports.sessionStore = new ueberStore();
|
||||
exports.secret = randomString(32); // Isn't this being reset each time the server spawns?
|
||||
exports.secret = settings.sessionKey; // Isn't this being reset each time the server spawns?
|
||||
}
|
||||
|
||||
args.app.use(express.cookieParser(exports.secret));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue