diff options
author | George Hazan <ghazan@miranda.im> | 2021-11-24 21:44:39 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2021-11-24 21:44:39 +0300 |
commit | 65435a4f91eeea4af672f83d9bea59f9f86fd03d (patch) | |
tree | 9cef94f8ab12a1486de62d243b16b7a66c57a9a7 /protocols | |
parent | cabdbc8d2fad74bb0bf02b6f1d5789549d92be6a (diff) |
fixes #2972 (ICQ: login/registration by phone number is broken)
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/ICQ-WIM/src/options.cpp | 8 | ||||
-rw-r--r-- | protocols/ICQ-WIM/src/version.h | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/protocols/ICQ-WIM/src/options.cpp b/protocols/ICQ-WIM/src/options.cpp index fae31b9ea3..5855babd82 100644 --- a/protocols/ICQ-WIM/src/options.cpp +++ b/protocols/ICQ-WIM/src/options.cpp @@ -98,7 +98,7 @@ struct CIcqRegistrationDlg : public CIcqDlgBase bool OnApply() override { - auto *pReq = new AsyncHttpRequest(CONN_MAIN, REQUEST_GET, "https://www.icq.com/smsreg/loginWithPhoneNumber.php", &CIcqProto::OnLoginViaPhone); + auto *pReq = new AsyncHttpRequest(CONN_MAIN, REQUEST_GET, "https://u.icq.net/api/v60/smsreg/loginWithPhoneNumber.php", &CIcqProto::OnLoginViaPhone); pReq << CHAR_PARAM("locale", "en") << CHAR_PARAM("msisdn", szMsisdn) << CHAR_PARAM("trans_id", szTrans) << CHAR_PARAM("k", m_proto->appId()) << CHAR_PARAM("r", pReq->m_reqId) << CHAR_PARAM("f", "json") << WCHAR_PARAM("sms_code", ptrW(edtCode.GetText())) << INT_PARAM("create_account", 1); pReq->pUserInfo = this; @@ -116,8 +116,8 @@ struct CIcqRegistrationDlg : public CIcqDlgBase void onChange_Phone(CCtrlEdit*) { - auto *pReq = new AsyncHttpRequest(CONN_MAIN, REQUEST_GET, "https://clientapi.icq.net/fcgi-bin/smsphoneinfo", &CIcqProto::OnCheckPhone); - pReq << CHAR_PARAM("service", "icq_registration") << CHAR_PARAM("info", "typing_check,score,iso_country_code") + auto *pReq = new AsyncHttpRequest(CONN_MAIN, REQUEST_GET, "https://u.icq.net/api/v60/smsapi/fcgi-bin/smsphoneinfo", &CIcqProto::OnCheckPhone); + pReq << CHAR_PARAM("service", "icq_registration") << CHAR_PARAM("info", "typing_check,score,iso_country_code") << CHAR_PARAM("lang", "ru") << WCHAR_PARAM("phone", ptrW(edtPhone.GetText())) << CHAR_PARAM("id", pReq->m_reqId); pReq->pUserInfo = this; m_proto->Push(pReq); @@ -125,7 +125,7 @@ struct CIcqRegistrationDlg : public CIcqDlgBase void onClick_SendSms(CCtrlButton*) { - auto *pReq = new AsyncHttpRequest(CONN_MAIN, REQUEST_GET, "https://www.icq.com/smsreg/requestPhoneValidation.php", &CIcqProto::OnValidateSms); + auto *pReq = new AsyncHttpRequest(CONN_MAIN, REQUEST_GET, "https://u.icq.net/api/v60/smsreg/requestPhoneValidation.php", &CIcqProto::OnValidateSms); pReq << CHAR_PARAM("locale", "en") << CHAR_PARAM("msisdn", szMsisdn) << CHAR_PARAM("r", pReq->m_reqId) << CHAR_PARAM("smsFormatType", "human") << CHAR_PARAM("k", m_proto->appId()); pReq->pUserInfo = this; diff --git a/protocols/ICQ-WIM/src/version.h b/protocols/ICQ-WIM/src/version.h index 35a2dc3d6d..5b29ecef53 100644 --- a/protocols/ICQ-WIM/src/version.h +++ b/protocols/ICQ-WIM/src/version.h @@ -1,7 +1,7 @@ #define __MAJOR_VERSION 0 #define __MINOR_VERSION 96 #define __RELEASE_NUM 1 -#define __BUILD_NUM 4 +#define __BUILD_NUM 5 #include <stdver.h> |