diff options
author | George Hazan <ghazan@miranda.im> | 2023-02-01 18:21:04 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2023-02-01 18:21:04 +0300 |
commit | 47b61b0cdaa95adf2543523da00f134276eff8c3 (patch) | |
tree | 310b2ab0b10d02dcf5f8348f697a178d1ad75e65 /protocols | |
parent | de0e751a3d2b36448b61cc6bb96f5aa207ebd94f (diff) |
more thorough fix for #3317
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/Telegram/src/auth.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/protocols/Telegram/src/auth.cpp b/protocols/Telegram/src/auth.cpp index cdb1df9aeb..d1cfb85211 100644 --- a/protocols/Telegram/src/auth.cpp +++ b/protocols/Telegram/src/auth.cpp @@ -44,7 +44,9 @@ INT_PTR CALLBACK CTelegramProto::EnterEmailCode(void *param) es.szModuleName = ppro->m_szModuleName;
es.caption = TranslateT("Enter verification code received by email");
if (EnterString(&es)) {
- ppro->SendQuery(new TD::checkEmailAddressVerificationCode(T2Utf(es.ptszResult).get()), &CTelegramProto::OnUpdateAuth);
+ ppro->SendQuery(new TD::checkAuthenticationEmailCode(
+ TD::object_ptr<TD::EmailAddressAuthentication>(new TD::emailAddressAuthenticationCode(T2Utf(es.ptszResult).get()))),
+ &CTelegramProto::OnUpdateAuth);
mir_free(es.ptszResult);
}
else ppro->LogOut();
|