From 2831dbd98ae09d69787f0872238cf0848e6c3f87 Mon Sep 17 00:00:00 2001 From: Kevin Yue Date: Mon, 15 Nov 2021 11:37:46 +0800 Subject: [PATCH] support 2fa --- GPClient/challengedialog.cpp | 1 - GPClient/gatewayauthenticator.cpp | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/GPClient/challengedialog.cpp b/GPClient/challengedialog.cpp index 0fd3e80..bf842e7 100644 --- a/GPClient/challengedialog.cpp +++ b/GPClient/challengedialog.cpp @@ -36,4 +36,3 @@ void ChallengeDialog::on_challengeInput_textChanged(const QString &value) okBtn->setEnabled(true); } } - diff --git a/GPClient/gatewayauthenticator.cpp b/GPClient/gatewayauthenticator.cpp index fbf1014..7949d65 100644 --- a/GPClient/gatewayauthenticator.cpp +++ b/GPClient/gatewayauthenticator.cpp @@ -68,6 +68,7 @@ void GatewayAuthenticator::onLoginFinished() // 2FA if (response.contains("Challenge")) { + PLOGI << "The server need input the challenge..."; showChallenge(response); return; } @@ -206,6 +207,7 @@ void GatewayAuthenticator::showChallenge(const QString &responseText) connect(challengeDialog, &ChallengeDialog::accepted, this, [this] { params.setPassword(challengeDialog->getChallenge()); + PLOGI << "Challenge submitted, try to re-authenticate..."; authenticate(); });