From 3d7e74cc32c311b331d4e7bb34d76e0f78276036 Mon Sep 17 00:00:00 2001 From: Akhil Date: Mon, 17 Oct 2022 17:47:07 +0530 Subject: [PATCH] set oidc meta to empty --- lib/Listeners/BeforeUserDeletedListener.php | 2 +- lib/Service/ShopAccountService.php | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/Listeners/BeforeUserDeletedListener.php b/lib/Listeners/BeforeUserDeletedListener.php index 7126c624..e383b52f 100644 --- a/lib/Listeners/BeforeUserDeletedListener.php +++ b/lib/Listeners/BeforeUserDeletedListener.php @@ -74,7 +74,7 @@ class BeforeUserDeletedListener implements IEventListener } else { $newEmail = $this->shopAccountService->getShopEmailPostDeletePreference($uid); - $newEmail = $this->shopAccountService->updateUserEmail($shopUser['id'], $newEmail); + $newEmail = $this->shopAccountService->updateUserEmailAndEmptyOIDC($shopUser['id'], $newEmail); } } } diff --git a/lib/Service/ShopAccountService.php b/lib/Service/ShopAccountService.php index 7e35670e..c3145c65 100644 --- a/lib/Service/ShopAccountService.php +++ b/lib/Service/ShopAccountService.php @@ -125,11 +125,12 @@ class ShopAccountService { } - public function updateUserEmail(int $userId, string $email) : void { + public function updateUserEmailAndEmptyOIDC(int $userId, string $email) : void { $updateUrl = $this->shopUserUrl . '/' . strval($userId); $params = [ - 'email' => $email + 'email' => $email, + 'openid-connect-generic-last-user-claim' => [] ]; try { -- GitLab