mirror of
https://github.com/Ride-The-Lightning/RTL.git
synced 2025-02-22 14:22:48 +01:00
Merge pull request #1100 from Ride-The-Lightning/hide-rpcuser
Hide rpcuser value from ln config #861
This commit is contained in:
commit
88f481d120
2 changed files with 4 additions and 2 deletions
|
@ -379,7 +379,8 @@ export const maskPasswords = (obj) => {
|
|||
}
|
||||
if (typeof keys[i] === 'string' &&
|
||||
(keys[i].toLowerCase().includes('password') || keys[i].toLowerCase().includes('multipass') ||
|
||||
keys[i].toLowerCase().includes('rpcpass') || keys[i].toLowerCase().includes('rpcpassword'))) {
|
||||
keys[i].toLowerCase().includes('rpcpass') || keys[i].toLowerCase().includes('rpcpassword') ||
|
||||
keys[i].toLowerCase().includes('rpcuser'))) {
|
||||
obj[keys[i]] = '********************';
|
||||
}
|
||||
}
|
||||
|
|
|
@ -376,7 +376,8 @@ export const maskPasswords = (obj) => {
|
|||
}
|
||||
if (typeof keys[i] === 'string' &&
|
||||
(keys[i].toLowerCase().includes('password') || keys[i].toLowerCase().includes('multipass') ||
|
||||
keys[i].toLowerCase().includes('rpcpass') || keys[i].toLowerCase().includes('rpcpassword'))
|
||||
keys[i].toLowerCase().includes('rpcpass') || keys[i].toLowerCase().includes('rpcpassword') ||
|
||||
keys[i].toLowerCase().includes('rpcuser'))
|
||||
) {
|
||||
obj[keys[i]] = '********************';
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue