From ce8712037f4e116691702c991d598b76519a25cb Mon Sep 17 00:00:00 2001 From: gBoudeweel Date: Thu, 4 Nov 2021 15:16:01 +0100 Subject: [PATCH] chores: rename old V4 func --- classes/Presenter/PsAccountsPresenter.php | 2 +- classes/Service/PsAccountsService.php | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/classes/Presenter/PsAccountsPresenter.php b/classes/Presenter/PsAccountsPresenter.php index f46d8fb3b..b3ff30617 100644 --- a/classes/Presenter/PsAccountsPresenter.php +++ b/classes/Presenter/PsAccountsPresenter.php @@ -139,7 +139,7 @@ public function present($psxName = 'ps_accounts') // FIXME : Mix "SSO user" with "Backend user" 'user' => [ - 'uuid' => $this->psAccountsService->getUserUuidV4() ?: null, + 'uuid' => $this->psAccountsService->getUserUuid() ?: null, 'email' => $this->psAccountsService->getEmail() ?: null, 'emailIsValidated' => $this->psAccountsService->isEmailValidated(), 'isSuperAdmin' => $shopContext->getContext()->employee->isSuperAdmin(), diff --git a/classes/Service/PsAccountsService.php b/classes/Service/PsAccountsService.php index 423f5fa64..d661c84b0 100644 --- a/classes/Service/PsAccountsService.php +++ b/classes/Service/PsAccountsService.php @@ -127,9 +127,19 @@ public function getToken() } /** + * @deprecated deprecated since version 5.1.1 + * * @return string|false */ public function getUserUuidV4() + { + return $this->getUserUuid(); + } + + /** + * @return string|false + */ + public function getUserUuid() { return $this->userTokenRepository->getTokenUuid(); }