0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-10 23:36:14 -05:00

Added session_secret setting to schema (#9953)

closes #9952 
- required by the express-session middleware
This commit is contained in:
Fabien O'Carroll 2018-10-05 18:25:51 +07:00 committed by Kevin Ansfield
parent 9be9531ef8
commit 4ecf7352b5
2 changed files with 5 additions and 1 deletions

View file

@ -8,6 +8,9 @@
},
"notifications": {
"defaultValue": "[]"
},
"session_secret": {
"defaultValue": null
}
},
"blog": {

View file

@ -17,7 +17,8 @@ function parseDefaultSettings() {
defaultSettingsFlattened = {},
dynamicDefault = {
db_hash: uuid.v4(),
public_hash: crypto.randomBytes(15).toString('hex')
public_hash: crypto.randomBytes(15).toString('hex'),
session_secret: crypto.randomBytes(32).toString('hex')
};
_.each(defaultSettingsInCategories, function each(settings, categoryName) {