Adding Authenticator doc.

This commit is contained in:
stephb9959
2022-02-02 08:09:33 -08:00
parent 8965b3c590
commit 3d3dbc6b4d

View File

@@ -78,8 +78,9 @@ namespace OpenWifi {
}
auto answer = ChallengeResponse->get("answer").toString();
std::string Expecting;
if(Hint->second.Method==MFAMETHODS::AUTHENTICATOR &&
!TotpCache()->ValidateCode(Hint->second.UInfo.userinfo.userTypeProprietaryInfo.authenticatorSecret,answer)) {
!TotpCache()->ValidateCode(Hint->second.UInfo.userinfo.userTypeProprietaryInfo.authenticatorSecret,answer, Expecting)) {
return false;
} else if(Hint->second.Answer!=answer) {
return false;