Fix password scrubbing

This commit is contained in:
Bryan Ashby 2023-02-20 19:14:36 -07:00
parent 6e53c25d99
commit e35fc5bf41
No known key found for this signature in database
GPG Key ID: C2C1B501E4EFD994
1 changed files with 1 additions and 1 deletions

View File

@ -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}":"********"`;
}