From 2fba0450e178ad3d6f04c940192dde8f532c42c3 Mon Sep 17 00:00:00 2001 From: Shane Tomlinson Date: Mon, 25 Jul 2016 12:33:26 +0100 Subject: [PATCH] chore(server): Add some comments about why a some strange patterns are used. --- lib/customs.js | 2 ++ lib/routes/account.js | 2 ++ 2 files changed, 4 insertions(+) diff --git a/lib/customs.js b/lib/customs.js index d1369587c..c5be0016e 100644 --- a/lib/customs.js +++ b/lib/customs.js @@ -76,6 +76,7 @@ module.exports = function (log, error) { } ) .then( + // There's no useful information in the HTTP response, discard it. function () {}, function (err) { log.error({ op: 'customs.flag.1', email: email, err: err }) @@ -96,6 +97,7 @@ module.exports = function (log, error) { } ) .then( + // There's no useful information in the HTTP response, discard it. function () {}, function (err) { log.error({ op: 'customs.reset.1', email: email, err: err }) diff --git a/lib/routes/account.js b/lib/routes/account.js index 722126f6c..40aafaa49 100644 --- a/lib/routes/account.js +++ b/lib/routes/account.js @@ -1463,6 +1463,8 @@ module.exports = function ( if (config.isProduction) { delete routes[0].config.validate.payload.preVerified } else { + // programmatic account lockout was only available in + // non-production mode. routes.push({ method: 'POST', path: '/account/lock',