Fixing submfa method

This commit is contained in:
stephb9959
2021-12-08 15:47:43 -08:00
parent f8407f7b7c
commit 2be40d5d17
3 changed files with 6 additions and 2 deletions

View File

@@ -39,7 +39,8 @@ namespace OpenWifi {
RESTAPI_preferences, RESTAPI_preferences,
RESTAPI_suboauth2_handler, RESTAPI_suboauth2_handler,
RESTAPI_subuser_handler, RESTAPI_subuser_handler,
RESTAPI_subusers_handler RESTAPI_subusers_handler,
RESTAPI_submfa_handler
>(Path, Bindings, L, S); >(Path, Bindings, L, S);
} }

View File

@@ -32,6 +32,9 @@ namespace OpenWifi {
} }
void RESTAPI_submfa_handler::DoPut() { void RESTAPI_submfa_handler::DoPut() {
std::cout << "DoPut..." << std::endl;
auto Body = ParseStream(); auto Body = ParseStream();
SecurityObjects::SubMfaConfig MFC; SecurityObjects::SubMfaConfig MFC;

View File

@@ -15,7 +15,7 @@ namespace OpenWifi {
Poco::Net::HTTPRequest::HTTP_GET, Poco::Net::HTTPRequest::HTTP_GET,
Poco::Net::HTTPRequest::HTTP_OPTIONS}, Poco::Net::HTTPRequest::HTTP_OPTIONS},
Server, Server,
Internal, false, false , RateLimit{.Interval=1000,.MaxCalls=10}, Internal, true, false , RateLimit{.Interval=1000,.MaxCalls=10},
true) {} true) {}
static const std::list<const char *> PathName() { return std::list<const char *>{"/api/v1/submfa"}; }; static const std::list<const char *> PathName() { return std::list<const char *>{"/api/v1/submfa"}; };
void DoGet() final; void DoGet() final;