From d58f773c76fb9e9542f371252932ec04a022f309 Mon Sep 17 00:00:00 2001 From: Chris Bessent Date: Thu, 25 Nov 2021 13:00:15 -0700 Subject: Don't blacklist empty usernames and passwords --- src/organizer_en.ts | 22 +++++++++++----------- src/settingsdialogworkarounds.cpp | 6 ++++-- src/spawn.cpp | 6 ++++-- 3 files changed, 19 insertions(+), 15 deletions(-) (limited to 'src') diff --git a/src/organizer_en.ts b/src/organizer_en.ts index 498dfd63..1d56d0f8 100644 --- a/src/organizer_en.ts +++ b/src/organizer_en.ts @@ -7362,7 +7362,7 @@ This program is known to cause issues with Mod Organizer, such as freezing or bl - + @@ -7455,12 +7455,12 @@ This program is known to cause issues with Mod Organizer, such as freezing or bl - + Executables Blacklist - + Enter one executable per line to be blacklisted from the virtual file system. Mods and other virtualized files will not be visible to these executables and any executables launched by them. @@ -7471,14 +7471,14 @@ Example: - - - + + + Restart Mod Organizer - + Geometries will be reset to their default values. @@ -7682,22 +7682,22 @@ You can restart Mod Organizer as administrator and try launching the program aga - + Waiting - + Please press OK once you're logged into steam. - + Select binary - + Binary diff --git a/src/settingsdialogworkarounds.cpp b/src/settingsdialogworkarounds.cpp index df87aa16..cf54908a 100644 --- a/src/settingsdialogworkarounds.cpp +++ b/src/settingsdialogworkarounds.cpp @@ -17,8 +17,10 @@ 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"); + if (username.length() > 0) + MOBase::log::getDefault().addToBlacklist(username.toStdString(), "STEAM_USERNAME"); + if (password.length() > 0) + MOBase::log::getDefault().addToBlacklist(password.toStdString(), "STEAM_PASSWORD"); ui->appIDEdit->setText(settings().steam().appID()); ui->steamUserEdit->setText(username); diff --git a/src/spawn.cpp b/src/spawn.cpp index 4f1fdd3e..fbd4c286 100644 --- a/src/spawn.cpp +++ b/src/spawn.cpp @@ -625,8 +625,10 @@ bool startSteam(QWidget* parent) // See if username and password supplied. If so, pass them into steam. QString username, password; if (Settings::instance().steam().login(username, password)) { - MOBase::log::getDefault().addToBlacklist(username.toStdString(), "STEAM_USERNAME"); - MOBase::log::getDefault().addToBlacklist(password.toStdString(), "STEAM_PASSWORD"); + if (username.length() > 0) + MOBase::log::getDefault().addToBlacklist(username.toStdString(), "STEAM_USERNAME"); + if (password.length() > 0) + MOBase::log::getDefault().addToBlacklist(password.toStdString(), "STEAM_PASSWORD"); sp.arguments = makeSteamArguments(username, password); } -- cgit v1.3.1