From c167a087f8a820a6984f136b73c50b946d2126e0 Mon Sep 17 00:00:00 2001 From: ElzorFox Date: Mon, 1 Oct 2018 19:34:21 +0500 Subject: =?UTF-8?q?VKontakte:=20fix=202FA=20(not=20all=20of=20=20parameter?= =?UTF-8?q?s=20=E2=80=98api=5Fhash=E2=80=99=20are=20equally=20useful.=20su?= =?UTF-8?q?ddenly)=20version=20bump?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- protocols/VKontakte/src/version.h | 2 +- protocols/VKontakte/src/vk_thread.cpp | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/protocols/VKontakte/src/version.h b/protocols/VKontakte/src/version.h index 46b5f285c1..2f84f0faaa 100644 --- a/protocols/VKontakte/src/version.h +++ b/protocols/VKontakte/src/version.h @@ -1,7 +1,7 @@ #define __MAJOR_VERSION 0 #define __MINOR_VERSION 1 #define __RELEASE_NUM 6 -#define __BUILD_NUM 1 +#define __BUILD_NUM 2 #include diff --git a/protocols/VKontakte/src/vk_thread.cpp b/protocols/VKontakte/src/vk_thread.cpp index 2690a38c2c..53c5bd2ff8 100644 --- a/protocols/VKontakte/src/vk_thread.cpp +++ b/protocols/VKontakte/src/vk_thread.cpp @@ -21,6 +21,7 @@ UINT_PTR CVkProto::m_timer; mir_cs CVkProto::m_csTimer; char szBlankUrl[] = "https://oauth.vk.com/blank.html"; +char sz2FA[] = "https://m.vk.com/login?act=authcheck"; static char VK_TOKEN_BEG[] = "access_token="; static char VK_LOGIN_DOMAIN[] = "https://m.vk.com"; static char fieldsName[] = "id, first_name, last_name, photo_100, bdate, sex, timezone, " @@ -177,6 +178,8 @@ void CVkProto::OnOAuthAuthorize(NETLIBHTTPREQUEST *reply, AsyncHttpRequest *pReq ApplyCookies(pRedirectReq); m_prevUrl = pRedirectReq->m_szUrl; } + if (!_strnicmp(pszLocation, sz2FA, sizeof(sz2FA) - 1)) + pRedirectReq->m_szUrl = sz2FA; pRedirectReq->m_bApiReq = false; pRedirectReq->bIsMainConn = true; Push(pRedirectReq); -- cgit v1.2.3