From cb005f683507d675187e50186045bc27a8af3daa Mon Sep 17 00:00:00 2001 From: Artur Neumann Date: Fri, 17 Mar 2023 14:02:35 +0545 Subject: [PATCH] invalidate oauth2 tokens only for seen users Signed-off-by: Artur Neumann --- apps/oauth2/lib/Controller/SettingsController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/oauth2/lib/Controller/SettingsController.php b/apps/oauth2/lib/Controller/SettingsController.php index c24308140ec..04fc75a8f4a 100644 --- a/apps/oauth2/lib/Controller/SettingsController.php +++ b/apps/oauth2/lib/Controller/SettingsController.php @@ -105,7 +105,7 @@ class SettingsController extends Controller { public function deleteClient(int $id): JSONResponse { $client = $this->clientMapper->getByUid($id); - $this->userManager->callForAllUsers(function (IUser $user) use ($client) { + $this->userManager->callForSeenUsers(function (IUser $user) use ($client) { $this->tokenProvider->invalidateTokensOfUser($user->getUID(), $client->getName()); }); -- 2.39.5