Properly obfuscate query parameters in logs (#3793)
* fix-3789 * fix3789 add unit test
This commit is contained in:
committed by
Florent Vilmart
parent
22ba39812b
commit
e0be653f4c
@@ -64,6 +64,15 @@ export class LoggerController extends AdaptableController {
|
||||
}
|
||||
}
|
||||
|
||||
if (e.params) {
|
||||
for (const key of Object.keys(e.params)) {
|
||||
if (key === 'password') {
|
||||
e.params[key] = '********';
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return e;
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user