mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-07 13:15:28 +02:00
Mask out key/authCode from log
This commit is contained in:
parent
941b180227
commit
9cb31367fd
1 changed files with 1 additions and 1 deletions
|
@ -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
|
// Use a regexp -- we don't know how nested fields we want to seek and destroy may be
|
||||||
//
|
//
|
||||||
return JSON.parse(
|
return JSON.parse(
|
||||||
JSON.stringify(obj).replace(/"(password)"\s?:\s?"([^"]+)"/, (match, valueName) => {
|
JSON.stringify(obj).replace(/"(password|key|authCode)"\s?:\s?"([^"]+)"/, (match, valueName) => {
|
||||||
return `"${valueName}":"********"`;
|
return `"${valueName}":"********"`;
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue