Adding Authenticator doc.

This commit is contained in:
stephb9959
2022-02-02 10:03:20 -08:00
parent 3e0ecda9d6
commit a0f9abea88
3 changed files with 4 additions and 5 deletions

View File

@@ -79,9 +79,10 @@ 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, Expecting)) {
return false;
if(Hint->second.Method==MFAMETHODS::AUTHENTICATOR) {
if(!TotpCache()->ValidateCode(Hint->second.UInfo.userinfo.userTypeProprietaryInfo.authenticatorSecret,answer, Expecting)) {
return false;
}
} else if(Hint->second.Answer!=answer) {
return false;
}