mirror of
https://github.com/Telecominfraproject/wlan-cloud-ucentralsec.git
synced 2025-10-30 02:12:32 +00:00
Fixing submfa method
This commit is contained in:
@@ -39,7 +39,8 @@ namespace OpenWifi {
|
||||
RESTAPI_preferences,
|
||||
RESTAPI_suboauth2_handler,
|
||||
RESTAPI_subuser_handler,
|
||||
RESTAPI_subusers_handler
|
||||
RESTAPI_subusers_handler,
|
||||
RESTAPI_submfa_handler
|
||||
>(Path, Bindings, L, S);
|
||||
}
|
||||
|
||||
|
||||
@@ -32,6 +32,9 @@ namespace OpenWifi {
|
||||
}
|
||||
|
||||
void RESTAPI_submfa_handler::DoPut() {
|
||||
|
||||
std::cout << "DoPut..." << std::endl;
|
||||
|
||||
auto Body = ParseStream();
|
||||
SecurityObjects::SubMfaConfig MFC;
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ namespace OpenWifi {
|
||||
Poco::Net::HTTPRequest::HTTP_GET,
|
||||
Poco::Net::HTTPRequest::HTTP_OPTIONS},
|
||||
Server,
|
||||
Internal, false, false , RateLimit{.Interval=1000,.MaxCalls=10},
|
||||
Internal, true, false , RateLimit{.Interval=1000,.MaxCalls=10},
|
||||
true) {}
|
||||
static const std::list<const char *> PathName() { return std::list<const char *>{"/api/v1/submfa"}; };
|
||||
void DoGet() final;
|
||||
|
||||
Reference in New Issue
Block a user