mirror of
https://github.com/Telecominfraproject/wlan-cloud-ucentralsec.git
synced 2025-11-01 19:27:59 +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) {
|
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