stephb9959
2022-11-07 15:43:31 -08:00
parent 6543f44eab
commit b195763518
4 changed files with 9 additions and 1 deletions

View File

@@ -18,6 +18,9 @@ namespace OpenWifi {
SecurityObjects::ApiKeyEntryList List;
if(DB_.GetRecords(0,500, List.apiKeys, fmt::format(" userUuid='{}' ", user_uuid))) {
for(auto &key:List.apiKeys) {
Sanitize(UserInfo_, key);
}
Poco::JSON::Object Answer;
List.to_json(Answer);
return ReturnObject(Answer);