diff options
author | Piotr Piastucki <leech.miranda@gmail.com> | 2015-05-14 17:49:05 +0000 |
---|---|---|
committer | Piotr Piastucki <leech.miranda@gmail.com> | 2015-05-14 17:49:05 +0000 |
commit | f9475db573dcf34f9b8ea8180b69c834978f6ac9 (patch) | |
tree | 6c79c2d3a7572f65fd80e0c46c3c9973944873be /protocols/MSN/src/msn_auth.cpp | |
parent | c7577005f0d52def37928a96b66b72755e559a97 (diff) |
Fixed web authentication method without SkyLib.
git-svn-id: http://svn.miranda-ng.org/main/trunk@13592 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/MSN/src/msn_auth.cpp')
-rw-r--r-- | protocols/MSN/src/msn_auth.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/protocols/MSN/src/msn_auth.cpp b/protocols/MSN/src/msn_auth.cpp index c91be0edb1..cfb1e5291a 100644 --- a/protocols/MSN/src/msn_auth.cpp +++ b/protocols/MSN/src/msn_auth.cpp @@ -670,6 +670,10 @@ void CMsnProto::LoadAuthTokensDB(void) replaceStr(authCookies, dbv.pszVal);
db_free(&dbv);
}
+ if (getString("authStrToken", &dbv) == 0) {
+ replaceStr(authStrToken, dbv.pszVal);
+ db_free(&dbv);
+ }
}
void CMsnProto::SaveAuthTokensDB(void)
@@ -681,6 +685,7 @@ void CMsnProto::SaveAuthTokensDB(void) setString("authContactToken", authContactToken);
setString("authUIC", authUIC);
setString("authCookies", authCookies);
+ setString("authStrToken", authStrToken);
}
// -1 - Error on login sequence
@@ -852,6 +857,7 @@ int CMsnProto::MSN_AuthOAuth(void) pMappingContainer+=20;
UrlDecode(pMappingContainer);
replaceStr(authUIC, pMappingContainer);
+ MSN_GetPassportAuth();
authMethod = retVal = 2;
} else retVal = 0;
} else retVal = 0;
|