summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--protocols/Steam/src/steam_login.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/protocols/Steam/src/steam_login.cpp b/protocols/Steam/src/steam_login.cpp
index 2f883517e9..c1ef9b09f0 100644
--- a/protocols/Steam/src/steam_login.cpp
+++ b/protocols/Steam/src/steam_login.cpp
@@ -184,6 +184,10 @@ void CSteamProto::OnAuthorizationError(const JSONNode &node)
if (node["clear_password_field"].as_bool())
{
debugLogA("CSteamProto::OnAuthorizationError: clear password field");
+
+ // Probably wrong password entered?
+ DeleteAuthSettings();
+ SetStatus(ID_STATUS_OFFLINE);
return;
}
@@ -401,4 +405,4 @@ void CSteamProto::OnLoggedOn(const HttpResponse *response)
// start polling thread
m_hPollingThread = ForkThreadEx(&CSteamProto::PollingThread, nullptr, nullptr);
-} \ No newline at end of file
+}