Adding Authenticator doc.

This commit is contained in:
stephb9959
2022-02-02 07:58:00 -08:00
parent 042f7619ec
commit ef9cd80df6
2 changed files with 11 additions and 1 deletions

View File

@@ -23,10 +23,14 @@ namespace OpenWifi {
auto nextIndex = GetParameter("index",0);
bool moreCodes=false;
std::cout << "Value=" << Value << std::endl;
if(TotpCache()->ContinueValidation(UserInfo_.userinfo,false,Value,nextIndex,moreCodes)) {
_OWDEBUG_
Poco::JSON::Object Answer;
Answer.set("nextIndex", nextIndex);
Answer.set("moreCodes", moreCodes);
_OWDEBUG_
return ReturnObject(Answer);
}
return BadRequest(RESTAPI::Errors::MissingOrInvalidParameters);