mirror of
https://github.com/Telecominfraproject/wlan-cloud-ucentralsec.git
synced 2025-10-30 10:22:22 +00:00
Signed-off-by: stephb9959 <stephane.bourque@gmail.com>
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