Skip to content

Commit

Permalink
remove more auth fields
Browse files Browse the repository at this point in the history
  • Loading branch information
jchip committed May 5, 2021
1 parent b01ad3b commit 2e0e2b8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/util/fyntil.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ module.exports = {
removeAuthInfo(rcObj) {
const rmObj = {};
for (const key in rcObj) {
if (key.toLowerCase().indexOf("authtoken") < 0) {
const lower = key.toLowerCase();
if (!lower.includes("auth") && !lower.includes("password") && !lower.includes("otp")) {
rmObj[key] = rcObj[key];
}
}
Expand Down

0 comments on commit 2e0e2b8

Please sign in to comment.