diff options
author | George Hazan <george.hazan@gmail.com> | 2024-01-15 12:57:37 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2024-01-15 12:57:37 +0300 |
commit | c85590b8045696a04392129899a089baca1ce8a0 (patch) | |
tree | 6e151d16d06a036122562459054e17ca779a091f /protocols | |
parent | 17944741957b032d6ab360d78ab4fc26a0467706 (diff) |
fixes #4123 (Discord: прекращать подключение при отказе от ввода второго фактора)
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/Discord/src/mfa.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/protocols/Discord/src/mfa.cpp b/protocols/Discord/src/mfa.cpp index 292826d3e1..9bdc1539f4 100644 --- a/protocols/Discord/src/mfa.cpp +++ b/protocols/Discord/src/mfa.cpp @@ -36,6 +36,8 @@ public: btnCancel(this, IDCANCEL), btnAnother(this, IDC_ANOTHER) { + btnCancel.OnClick = Callback(this, &CMfaDialog::onClick_Cancel); + m_bHasSms = pRoot["sms"].as_bool(); m_bHasTotp = pRoot["totp"].as_bool(); m_szTicket = pRoot["ticket"].as_mstring(); @@ -68,7 +70,7 @@ public: return false; } - void onClick_Cancel() + void onClick_Cancel(CCtrlButton *) { m_proto->ConnectionFailed(LOGINERR_WRONGPASSWORD); } |