Compare View
Commits (2)
Changes
Showing 3 changed files Side-by-side Diff
lib/control-panel/index.js
... | ... | @@ -15,7 +15,8 @@ const coreTerminalAuth = require('../core-terminal-auth'); |
15 | 15 | const app = express(); |
16 | 16 | |
17 | 17 | app.use(session({ |
18 | - secret: config.sdk_supplier_product_quota.session_secret, | |
18 | + secret: (config.sdk_supplier_product_quota | |
19 | + && config.sdk_supplier_product_quota.session_secret) || uniqid(), | |
19 | 20 | resave: true, |
20 | 21 | saveUninitialized: false, |
21 | 22 | })); |
package-lock.json