Adding new stats.

This commit is contained in:
stephb9959
2021-11-05 15:34:22 -07:00
parent df0f512827
commit 06cbc61c17
9 changed files with 420 additions and 322 deletions

View File

@@ -59,7 +59,9 @@ namespace OpenWifi {
D.key.empty() ||
D.deviceType.empty() ||
!GooDeviceType(D.deviceType) ||
D.certificate.empty()) {
D.certificate.empty() ||
(D.maxClients<D.minClients) ||
(D.maxAssociations<D.minAssociations)) {
return BadRequest(RESTAPI::Errors::InvalidJSONDocument);
}
@@ -104,7 +106,10 @@ namespace OpenWifi {
D.macPrefix.size()!=6 ||
D.key.empty() ||
D.certificate.empty() ||
D.deviceType.empty()) {
D.deviceType.empty() ||
!GooDeviceType(D.deviceType) ||
(D.maxClients<D.minClients) ||
(D.maxAssociations<D.minAssociations)) {
return BadRequest(RESTAPI::Errors::InvalidJSONDocument);
}