summaryrefslogtreecommitdiff
path: root/protocols/MSN/src/msn_auth.cpp
diff options
context:
space:
mode:
authorPiotr Piastucki <leech.miranda@gmail.com>2015-05-19 23:52:48 +0000
committerPiotr Piastucki <leech.miranda@gmail.com>2015-05-19 23:52:48 +0000
commitba3753cb8f2aeda5ee1778ce95eb935c9e229419 (patch)
treefae888acddc4f7015a6b3c004e694596351060a2 /protocols/MSN/src/msn_auth.cpp
parenta9502f70c15fbd1bb0e15f3fab05c1a6dc573248 (diff)
- Better also save SOAP store access token.
- Implemented handling of NFY MSGR\ABCH message although I never saw one (so untested). git-svn-id: http://svn.miranda-ng.org/main/trunk@13706 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/MSN/src/msn_auth.cpp')
-rw-r--r--protocols/MSN/src/msn_auth.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/protocols/MSN/src/msn_auth.cpp b/protocols/MSN/src/msn_auth.cpp
index c2ca13612b..ae8bc6814b 100644
--- a/protocols/MSN/src/msn_auth.cpp
+++ b/protocols/MSN/src/msn_auth.cpp
@@ -238,6 +238,7 @@ int CMsnProto::MSN_GetPassportAuth(void)
}
else if (strcmp(addr, "storage.msn.com") == 0 && toks) {
replaceStr(authStorageToken, ezxml_txt(toks));
+ setString("authStorageToken", authStorageToken);
}
tokr = ezxml_next(tokr);
@@ -687,6 +688,10 @@ void CMsnProto::LoadAuthTokensDB(void)
hotAuthToken = strdup(dbv.pszVal);
db_free(&dbv);
}
+ if (getString("authStorageToken", &dbv) == 0) {
+ replaceStr(authStorageToken, dbv.pszVal);
+ db_free(&dbv);
+ }
}
void CMsnProto::SaveAuthTokensDB(void)
@@ -695,7 +700,6 @@ void CMsnProto::SaveAuthTokensDB(void)
setDword("authMethod", authMethod);
setString("authUser", authUser);
setString("authSSLToken", authSSLToken);
- setString("authContactToken", authContactToken);
setString("authUIC", authUIC);
setString("authCookies", authCookies);
setString("authStrToken", authStrToken);