Merge pull request #98 from Telecominfraproject/WIFI-10877

https://telecominfraproject.atlassian.net/browse/WIFI-10877
This commit is contained in:
Stephane Bourque
2022-11-30 11:54:28 -08:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

2
build
View File

@@ -1 +1 @@
36
37

View File

@@ -48,7 +48,7 @@ namespace OpenWifi {
bool ApiKeyDB::RemoveAllApiKeys(const std::string & user_uuid) {
SecurityObjects::ApiKeyEntryList Keys;
if(StorageService()->ApiKeyDB().GetRecords(0,500,Keys.apiKeys,fmt::format(" userUuid='{} ", user_uuid))) {
if(StorageService()->ApiKeyDB().GetRecords(0,500,Keys.apiKeys,fmt::format(" userUuid='{}' ", user_uuid))) {
for(const auto &key:Keys.apiKeys) {
AuthService()->RemoveTokenSystemWide(key.apiKey);
}