stephb9959
2023-10-04 15:25:26 -07:00
parent 25ebd7f203
commit 14efffa612
5 changed files with 51 additions and 10 deletions

View File

@@ -45,6 +45,10 @@ namespace OpenWifi {
return true;
}
static bool ValidRadiusServer(const std::vector<ProvObjects::RADIUSServer> &ServerList) {
return std::all_of(ServerList.begin(),ServerList.end(),[](const ProvObjects::RADIUSServer &Server)->bool { return ValidRadiusServer(Server); });
}
void RESTAPI_radius_endpoint_handler::DoPost() {
auto id = GetBinding("id");
if(id.empty()) {