mirror of
https://github.com/Ride-The-Lightning/RTL.git
synced 2025-02-21 14:04:18 +01:00
parent
b6dbd23ae7
commit
c54edcaff8
2 changed files with 14 additions and 10 deletions
|
@ -40,11 +40,13 @@ export class CommonService {
|
|||
return obj;
|
||||
};
|
||||
this.removeAuthSecureData = (node) => {
|
||||
delete node.authentication.macaroonPath;
|
||||
delete node.authentication.runePath;
|
||||
delete node.authentication.runeValue;
|
||||
delete node.authentication.lnApiPassword;
|
||||
delete node.authentication.options;
|
||||
if (node.authentication) {
|
||||
delete node.authentication.macaroonPath;
|
||||
delete node.authentication.runePath;
|
||||
delete node.authentication.runeValue;
|
||||
delete node.authentication.lnApiPassword;
|
||||
delete node.authentication.options;
|
||||
}
|
||||
return node;
|
||||
};
|
||||
this.removeSecureData = (config) => {
|
||||
|
|
|
@ -47,11 +47,13 @@ export class CommonService {
|
|||
};
|
||||
|
||||
public removeAuthSecureData = (node: SelectedNode) => {
|
||||
delete node.authentication.macaroonPath;
|
||||
delete node.authentication.runePath;
|
||||
delete node.authentication.runeValue;
|
||||
delete node.authentication.lnApiPassword;
|
||||
delete node.authentication.options;
|
||||
if (node.authentication) {
|
||||
delete node.authentication.macaroonPath;
|
||||
delete node.authentication.runePath;
|
||||
delete node.authentication.runeValue;
|
||||
delete node.authentication.lnApiPassword;
|
||||
delete node.authentication.options;
|
||||
}
|
||||
return node;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue