summaryrefslogtreecommitdiff
path: root/protocols/Steam/src/steam_login.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Steam/src/steam_login.cpp')
-rw-r--r--protocols/Steam/src/steam_login.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/protocols/Steam/src/steam_login.cpp b/protocols/Steam/src/steam_login.cpp
index 543831e894..c21d6d783c 100644
--- a/protocols/Steam/src/steam_login.cpp
+++ b/protocols/Steam/src/steam_login.cpp
@@ -67,8 +67,11 @@ void CSteamProto::Login()
m_szAccessToken = getMStringA(DBKEY_ACCESS_TOKEN);
m_szRefreshToken = getMStringA(DBKEY_REFRESH_TOKEN);
- if (!m_szAccessToken.IsEmpty() && !m_szRefreshToken.IsEmpty())
+ if (!m_szAccessToken.IsEmpty() && !m_szRefreshToken.IsEmpty()) {
+ m_iSteamId = GetId(DBKEY_STEAM_ID);
+ m_iClientId = GetId(DBKEY_CLIENT_ID);
OnLoggedIn();
+ }
else {
CAuthenticationGetPasswordRSAPublicKeyRequest request;
request.account_name = username.get();