Skip to content

Commit d905b41

Browse files
committed
invalidate oauth2 tokens only for seen users
Signed-off-by: Artur Neumann <artur@jankaritech.com>
1 parent 44d8bdf commit d905b41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/oauth2/lib/Controller/SettingsController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public function addClient(string $name,
105105
public function deleteClient(int $id): JSONResponse {
106106
$client = $this->clientMapper->getByUid($id);
107107

108-
$this->userManager->callForAllUsers(function (IUser $user) use ($client) {
108+
$this->userManager->callForSeenUsers(function (IUser $user) use ($client) {
109109
$this->tokenProvider->invalidateTokensOfUser($user->getUID(), $client->getName());
110110
});
111111

0 commit comments

Comments
 (0)