From e2a12d6e234c1ae257421f4dad4fca73bcafc518 Mon Sep 17 00:00:00 2001 From: Andrew Longosz Date: Mon, 19 Aug 2024 17:19:28 +0200 Subject: [PATCH] Implemented \Ibexa\Core\MVC\Symfony\Security\User::getUserIdentifier --- src/lib/MVC/Symfony/Security/User.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/lib/MVC/Symfony/Security/User.php b/src/lib/MVC/Symfony/Security/User.php index 299877d6b8..db17bbc6d4 100644 --- a/src/lib/MVC/Symfony/Security/User.php +++ b/src/lib/MVC/Symfony/Security/User.php @@ -80,6 +80,11 @@ public function getSalt(): ?string * Returns the username used to authenticate the user. */ public function getUsername(): string + { + return $this->getUserIdentifier(); + } + + public function getUserIdentifier(): string { return $this->getAPIUser()->getLogin(); }