stephb9959
2022-11-07 16:04:24 -08:00
parent b195763518
commit 780d6654fb

View File

@@ -105,6 +105,10 @@ namespace OpenWifi {
}
}
if(ExistingList.apiKeys.size()>=10) {
return BadRequest(RESTAPI::Errors::TooManyApiKeys);
}
NewKey.id = MicroServiceCreateUUID();
NewKey.userUuid = user_uuid;
NewKey.salt = std::to_string(Utils::Now());