mirror of
https://github.com/Telecominfraproject/wlan-cloud-ucentralsec.git
synced 2025-10-29 09:52:29 +00:00
Merge pull request #98 from Telecominfraproject/WIFI-10877
https://telecominfraproject.atlassian.net/browse/WIFI-10877
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user