mirror of
https://github.com/Telecominfraproject/wlan-cloud-ucentralsec.git
synced 2025-10-30 18:27:49 +00:00
Fixing submfa method
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user