summaryrefslogtreecommitdiff
path: root/src/settingsdialogworkarounds.cpp
diff options
context:
space:
mode:
authorChris Bessent <lost.dragonist@gmail.com>2021-11-23 17:19:00 -0700
committerChris Bessent <lost.dragonist@gmail.com>2021-11-23 17:19:00 -0700
commit1d80c547d7c63b694fa79825e67694eae63749b2 (patch)
treeea4123d3f72516a9b6aa32eb8f14f48fca806a4f /src/settingsdialogworkarounds.cpp
parent1755f526c96a547f33306008bff99f12a3e4da72 (diff)
Blacklist Steam username and password from the log
Diffstat (limited to 'src/settingsdialogworkarounds.cpp')
-rw-r--r--src/settingsdialogworkarounds.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/settingsdialogworkarounds.cpp b/src/settingsdialogworkarounds.cpp
index 17b2259b..df87aa16 100644
--- a/src/settingsdialogworkarounds.cpp
+++ b/src/settingsdialogworkarounds.cpp
@@ -4,6 +4,7 @@
#include "settings.h"
#include <report.h>
#include <iplugingame.h>
+#include <log.h>
WorkaroundsSettingsTab::WorkaroundsSettingsTab(Settings& s, SettingsDialog& d)
: SettingsTab(s, d)
@@ -16,6 +17,8 @@ WorkaroundsSettingsTab::WorkaroundsSettingsTab(Settings& s, SettingsDialog& d)
// steam
QString username, password;
settings().steam().login(username, password);
+ MOBase::log::getDefault().addToBlacklist(username.toStdString(), "STEAM_USERNAME");
+ MOBase::log::getDefault().addToBlacklist(password.toStdString(), "STEAM_PASSWORD");
ui->appIDEdit->setText(settings().steam().appID());
ui->steamUserEdit->setText(username);