invalidate oauth2 tokens only for seen users

Signed-off-by: Artur Neumann <artur@jankaritech.com>
pull/37761/head
Artur Neumann 2 years ago committed by skjnldsv
parent f4f7c757d4
commit cc44ec54ad
  1. 2
      apps/oauth2/lib/Controller/SettingsController.php

@ -69,7 +69,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());
});

Loading…
Cancel
Save