summaryrefslogtreecommitdiff
path: root/protocols/ICQ-WIM/src/options.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/ICQ-WIM/src/options.cpp')
-rw-r--r--protocols/ICQ-WIM/src/options.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/protocols/ICQ-WIM/src/options.cpp b/protocols/ICQ-WIM/src/options.cpp
index 4676a98679..ca7603b9bb 100644
--- a/protocols/ICQ-WIM/src/options.cpp
+++ b/protocols/ICQ-WIM/src/options.cpp
@@ -99,7 +99,7 @@ struct CIcqRegistrationDlg : public CIcqDlgBase
bool OnApply() override
{
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())
+ pReq << CHAR_PARAM("locale", "en") << CHAR_PARAM("msisdn", szMsisdn) << CHAR_PARAM("trans_id", szTrans) << CHAR_PARAM("k", APP_ID)
<< 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;
@@ -127,7 +127,7 @@ struct CIcqRegistrationDlg : public CIcqDlgBase
{
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());
+ << CHAR_PARAM("smsFormatType", "human") << CHAR_PARAM("k", APP_ID);
pReq->pUserInfo = this;
m_proto->Push(pReq);
}
@@ -154,7 +154,7 @@ void CIcqProto::OnCheckPhone(MHttpResponse *pReply, AsyncHttpRequest *pReq)
auto *pNew = new AsyncHttpRequest(CONN_MAIN, REQUEST_GET, "https://www.icq.com/smsreg/normalizePhoneNumber.php", &CIcqProto::OnNormalizePhone);
pNew << CHAR_PARAM("countryCode", szPrefix) << CHAR_PARAM("phoneNumber", szPhoneNumber.c_str() + szPrefix.GetLength())
- << CHAR_PARAM("k", appId()) << CHAR_PARAM("r", pReq->m_reqId);
+ << CHAR_PARAM("k", APP_ID) << CHAR_PARAM("r", pReq->m_reqId);
pNew->pUserInfo = pDlg;
Push(pNew);
}
@@ -246,10 +246,7 @@ public:
bool OnInitDialog() override
{
- if (m_proto->m_isMra)
- btnCreate.Hide();
- else
- SetDlgItemText(m_hwnd, IDC_UIN_LABEL, TranslateT("UIN:"));
+ btnCreate.Hide();
wszOldPass = m_proto->getMStringW("Password");
edtPassword.SetText(wszOldPass);