Fixing logo problem in email

This commit is contained in:
stephb9959
2021-11-12 08:10:32 -08:00
parent 5931c91054
commit 6c24a23863

View File

@@ -101,16 +101,27 @@ namespace OpenWifi {
return UnAuthorized(RESTAPI::Errors::InvalidCredentials);
}
std::cout << __func__ << ":" << __LINE__ << std::endl;
if(GetBoolParameter(RESTAPI::Protocol::COMPLETEMFACHALLENGE,false)) {
std::cout << __func__ << ":" << __LINE__ << std::endl;
Logger_.information(Poco::format("COMPLETE-MFA-CHALLENGE(%s): Request for %s", Request->clientAddress().toString(), userId));
std::cout << __func__ << ":" << __LINE__ << std::endl;
if(Obj->has(RESTAPI::Protocol::UUID)) {
std::cout << __func__ << ":" << __LINE__ << std::endl;
SecurityObjects::UserInfoAndPolicy UInfo;
std::cout << __func__ << ":" << __LINE__ << std::endl;
if(MFAServer().CompleteMFAChallenge(Obj,UInfo)) {
std::cout << __func__ << ":" << __LINE__ << std::endl;
Poco::JSON::Object ReturnObj;
std::cout << __func__ << ":" << __LINE__ << std::endl;
UInfo.webtoken.to_json(ReturnObj);
std::cout << __func__ << ":" << __LINE__ << std::endl;
return ReturnObject(ReturnObj);
}
std::cout << __func__ << ":" << __LINE__ << std::endl;
}
std::cout << __func__ << ":" << __LINE__ << std::endl;
return UnAuthorized(RESTAPI::Errors::InvalidCredentials);
}