From b0947bf46abb71ea200dbcd5b0fc173603713e2d Mon Sep 17 00:00:00 2001 From: Kevin Yue Date: Mon, 15 Nov 2021 14:43:31 +0800 Subject: [PATCH] support 2fa --- GPClient/gatewayauthenticator.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/GPClient/gatewayauthenticator.cpp b/GPClient/gatewayauthenticator.cpp index 7949d65..37611ee 100644 --- a/GPClient/gatewayauthenticator.cpp +++ b/GPClient/gatewayauthenticator.cpp @@ -139,11 +139,10 @@ void GatewayAuthenticator::onPerformNormalLogin(const QString &username, const Q PLOGI << "Start to perform normal login..."; normalLoginWindow->setProcessing(true); - LoginParams loginParams { params.clientos() }; - loginParams.setUser(username); - loginParams.setPassword(password); + params.setUsername(username); + params.setPassword(password); - login(loginParams); + authenticate(); } void GatewayAuthenticator::onLoginWindowRejected()