summaryrefslogtreecommitdiff
path: root/protocols/MSN/src/msn_auth.cpp
diff options
context:
space:
mode:
authorPiotr Piastucki <leech.miranda@gmail.com>2015-05-16 22:03:37 +0000
committerPiotr Piastucki <leech.miranda@gmail.com>2015-05-16 22:03:37 +0000
commitb5c08ff62968cf49c19dcdd2347520e400cbb5f5 (patch)
tree868a4dc3007fe1a1f608a0f6f22dad8ee43890f8 /protocols/MSN/src/msn_auth.cpp
parent28a5e958778bae84618a6eb57e4864d37c07cd0c (diff)
- Fixed port number in options dlg (which still showed old port number)
- Changed checkboxes to enable setting instead of disable it by checking them which seems a bit inconsistent. - Also cache MSN Passport token as it is needed for editing MSN profile in web - Do not set user status to offline when another endpoint of our user (i.e. web) disconnects. - Set wlid in options dialog when saving username/pass so that other modules can also read current WLID correctly (as we do not rely on e-mail addresses anymore) - Kick out file sending/receiving capability as this doesn't work anymore. git-svn-id: http://svn.miranda-ng.org/main/trunk@13658 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/MSN/src/msn_auth.cpp')
-rw-r--r--protocols/MSN/src/msn_auth.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/protocols/MSN/src/msn_auth.cpp b/protocols/MSN/src/msn_auth.cpp
index 764fad3891..40a3db09b5 100644
--- a/protocols/MSN/src/msn_auth.cpp
+++ b/protocols/MSN/src/msn_auth.cpp
@@ -206,6 +206,7 @@ int CMsnProto::MSN_GetPassportAuth(void)
node = ezxml_get(tokr, "wst:RequestedProofToken", 0, "wst:BinarySecret", -1);
replaceStr(hotSecretToken, ezxml_txt(node));
+ setString("hotSecretToken", hotSecretToken);
}
else if (strcmp(addr, "chatservice.live.com") == 0) {
ezxml_t node = ezxml_get(tokr, "wst:RequestedProofToken", 0,
@@ -676,6 +677,10 @@ void CMsnProto::LoadAuthTokensDB(void)
replaceStr(authStrToken, dbv.pszVal);
db_free(&dbv);
}
+ if (getString("hotSecretToken", &dbv) == 0) {
+ replaceStr(hotSecretToken, dbv.pszVal);
+ db_free(&dbv);
+ }
}
void CMsnProto::SaveAuthTokensDB(void)