Commit 3b5cc7711a06367e3cdd3163fb12550305742c01
1 parent
0b9310bbaf
Exists in
master
Warn on no callback apikey
Showing 1 changed file with 4 additions and 0 deletions Side-by-side Diff
lib/callback/apikey-checker.js
... | ... | @@ -12,6 +12,10 @@ const sendInvalidApikeyResponse = (xid, res) => { |
12 | 12 | }); |
13 | 13 | }; |
14 | 14 | |
15 | +if (!config.partner.callback.apikey) { | |
16 | + logger.warn(`${MODULE_NAME} 56420201: Missing config.partner.callback.apikey. Please consider to set it for security reason`); | |
17 | +} | |
18 | + | |
15 | 19 | module.exports = (req, res, next) => { |
16 | 20 | if (!config.partner || !config.partner.callback || !config.partner.callback.apikey) { |
17 | 21 | next(); |