Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 20be00f1 authored by Akhil's avatar Akhil 🙂
Browse files

Merge branch 'empty-oidc-metadata' into 'main'

set oidc meta to empty

Closes ecorp/web/website#548

See merge request !33
parents ab4a5ee0 3d7e74cc
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
            }
        }
    }
+3 −2
Original line number Diff line number Diff line
@@ -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 {