mirror of
https://github.com/Telecominfraproject/wlan-cloud-ucentralsec.git
synced 2025-11-01 03:07:59 +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) {
|
bool ApiKeyDB::RemoveAllApiKeys(const std::string & user_uuid) {
|
||||||
SecurityObjects::ApiKeyEntryList Keys;
|
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) {
|
for(const auto &key:Keys.apiKeys) {
|
||||||
AuthService()->RemoveTokenSystemWide(key.apiKey);
|
AuthService()->RemoveTokenSystemWide(key.apiKey);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user