mirror of
https://github.com/yuezk/GlobalProtect-openconnect.git
synced 2025-04-02 18:31:50 -04:00
support 2fa
This commit is contained in:
parent
f1073676ab
commit
2831dbd98a
@ -36,4 +36,3 @@ void ChallengeDialog::on_challengeInput_textChanged(const QString &value)
|
|||||||
okBtn->setEnabled(true);
|
okBtn->setEnabled(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -68,6 +68,7 @@ void GatewayAuthenticator::onLoginFinished()
|
|||||||
|
|
||||||
// 2FA
|
// 2FA
|
||||||
if (response.contains("Challenge")) {
|
if (response.contains("Challenge")) {
|
||||||
|
PLOGI << "The server need input the challenge...";
|
||||||
showChallenge(response);
|
showChallenge(response);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -206,6 +207,7 @@ void GatewayAuthenticator::showChallenge(const QString &responseText)
|
|||||||
|
|
||||||
connect(challengeDialog, &ChallengeDialog::accepted, this, [this] {
|
connect(challengeDialog, &ChallengeDialog::accepted, this, [this] {
|
||||||
params.setPassword(challengeDialog->getChallenge());
|
params.setPassword(challengeDialog->getChallenge());
|
||||||
|
PLOGI << "Challenge submitted, try to re-authenticate...";
|
||||||
authenticate();
|
authenticate();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user