diff options
author | George Hazan <4628541+georgehazan@users.noreply.github.com> | 2022-11-09 10:22:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-09 10:22:34 +0200 |
commit | 6aa070f80a4256d220359dfed902aba2bb81e4c4 (patch) | |
tree | 8384227050e8a00e1864e76e73d9a6fc5762bd23 /protocols/SkypeWeb | |
parent | cb51af2a8850a4b88e5e7025b2481d8afc1825c8 (diff) |
Update skype_login.cpp
Fix for not wiping out TokenSecret on expiring
Diffstat (limited to 'protocols/SkypeWeb')
-rw-r--r-- | protocols/SkypeWeb/src/skype_login.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/SkypeWeb/src/skype_login.cpp b/protocols/SkypeWeb/src/skype_login.cpp index 0c48c1f541..d003c4ee71 100644 --- a/protocols/SkypeWeb/src/skype_login.cpp +++ b/protocols/SkypeWeb/src/skype_login.cpp @@ -143,7 +143,7 @@ void CSkypeProto::OnEndpointCreated(NETLIBHTTPREQUEST *response, AsyncHttpReques case 401: // unauthorized
if (auto *szStatus = Netlib_GetHeader(response, "StatusText"))
- if (!strstr(szStatus, "SkypeTokenExpired"))
+ if (strstr(szStatus, "SkypeTokenExpired"))
delSetting("TokenSecret");
delSetting("TokenExpiresIn");
PushRequest(new LoginOAuthRequest(m_szSkypename, pass_ptrA(getStringA(SKYPE_SETTINGS_PASSWORD))));
|