diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2016-03-18 14:55:32 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2016-03-18 14:55:32 +0000 |
commit | 948f6b2b9a6980461656b7c55b7815cb5554dbb2 (patch) | |
tree | 3c109980fbcc21d22ed7128e1972179efcfaea7a /protocols | |
parent | a1728bef4efb06742b792f9f5b4aab48d1d7bb48 (diff) |
SkepeWeb: Corak's login fix :-)
git-svn-id: http://svn.miranda-ng.org/main/trunk@16496 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/SkypeWeb/src/skype_login.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/protocols/SkypeWeb/src/skype_login.cpp b/protocols/SkypeWeb/src/skype_login.cpp index 017323e1dd..3bf80c0e37 100644 --- a/protocols/SkypeWeb/src/skype_login.cpp +++ b/protocols/SkypeWeb/src/skype_login.cpp @@ -191,6 +191,13 @@ void CSkypeProto::OnEndpointCreated(const NETLIBHTTPREQUEST *response) SendRequest(new LoginOAuthRequest(li.szSkypename, ptrA(getStringA(SKYPE_SETTINGS_PASSWORD))), &CSkypeProto::OnLoginOAuth);
return;
}
+ else if (response->resultCode == 400)
+ {
+ delSetting("TokenExpiresIn");
+ ProtoBroadcastAck(NULL, ACKTYPE_LOGIN, ACKRESULT_FAILED, NULL, LOGIN_ERROR_UNKNOWN);
+ SetStatus(ID_STATUS_OFFLINE);
+ return;
+ }
else //it should be rewritten
{
SendRequest(new CreateEndpointRequest(li), &CSkypeProto::OnEndpointCreated);
|