stephb9959
2023-10-06 09:06:27 -07:00
parent e6bc329e7b
commit 7f5fb52157
4 changed files with 42 additions and 11 deletions

View File

@@ -81,7 +81,7 @@ namespace OpenWifi {
return BadRequest(RESTAPI::Errors::EndpointMustHaveOneTypeOfServers);
}
} break;
case RadiusEndpointDB::EndpointType::radius: {
case RadiusEndpointDB::EndpointType::generic: {
if(NewRecord.RadiusServers.empty()) {
return BadRequest(RESTAPI::Errors::EndpointMustHaveOneTypeOfServers);
}
@@ -100,7 +100,7 @@ namespace OpenWifi {
return BadRequest(RESTAPI::Errors::RadiusEndpointIndexInvalid);
}
if(EndPointType==RadiusEndpointDB::EndpointType::radius) {
if(EndPointType==RadiusEndpointDB::EndpointType::generic) {
for(const auto &Server:NewRecord.RadiusServers) {
if(!ValidRadiusServer(Server.Authentication) ||
!ValidRadiusServer(Server.Accounting) ||