From e35fc5bf4131a0e56f8c6f1db7e394ae7081e24a Mon Sep 17 00:00:00 2001 From: Bryan Ashby Date: Mon, 20 Feb 2023 19:14:36 -0700 Subject: [PATCH] Fix password scrubbing --- core/logger.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/logger.js b/core/logger.js index 37f4f319..83eac3ad 100644 --- a/core/logger.js +++ b/core/logger.js @@ -72,7 +72,7 @@ module.exports = class Log { return JSON.parse( JSON.stringify(obj).replace( // note that we match against key names here - /"(password|passwordConfirm|key|authCode)"\s?:\s?"([^"]+)"/, + /"(password|passwordConfirm|key|authCode)"\s?:\s?"([^"]+)"/g, (match, keyName) => { return `"${keyName}":"********"`; }