Mask out passwordConfirm

This commit is contained in:
Bryan Ashby 2017-10-29 20:03:49 -06:00
parent e55b4aa50b
commit 2efc522d68
1 changed files with 1 additions and 1 deletions

View File

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