From 2efc522d680feaf95fba0327d0d9857b54f438c5 Mon Sep 17 00:00:00 2001 From: Bryan Ashby Date: Sun, 29 Oct 2017 20:03:49 -0600 Subject: [PATCH] Mask out passwordConfirm --- core/logger.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/logger.js b/core/logger.js index 3b0b47e2..f90aec41 100644 --- a/core/logger.js +++ b/core/logger.js @@ -62,7 +62,7 @@ module.exports = class Log { // Use a regexp -- we don't know how nested fields we want to seek and destroy may be // return JSON.parse( - JSON.stringify(obj).replace(/"(password|key|authCode)"\s?:\s?"([^"]+)"/, (match, valueName) => { + JSON.stringify(obj).replace(/"(password|passwordConfirm|key|authCode)"\s?:\s?"([^"]+)"/, (match, valueName) => { return `"${valueName}":"********"`; }) );