Skip to content
This repository has been archived by the owner on May 24, 2022. It is now read-only.

Commit

Permalink
fix: Hide incorrect password from logs (parity_exportAccount) (#209)
Browse files Browse the repository at this point in the history
  • Loading branch information
axelchalon authored and amaury1093 committed Mar 20, 2019
1 parent bd9e2b4 commit 43c9624
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/api/src/transport/ws/ws.js
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ class Ws extends JsonRpcBase {
// fether Issue #317
// js-libs Issue #77 Masks the password param when logging error to console on methods that contain it as a param.
// e.g. ["0x2",{},"myincorrectpassword"] -> ["0x2",{},"***"]
const dangerous_methods = ['signer_confirmRequest', 'signer_confirmRequestWithToken'];
const dangerous_methods = ['signer_confirmRequest', 'signer_confirmRequestWithToken', 'parity_exportAccount'];
let safe_params;
if (dangerous_methods.includes(method)) {
safe_params = params.slice();
Expand Down

0 comments on commit 43c9624

Please sign in to comment.