From d2bc636a79a0bb0fd1939255fe69f440df171da8 Mon Sep 17 00:00:00 2001 From: Côme Chilliet Date: Tue, 9 Jul 2024 09:27:10 +0200 Subject: fix(user_ldap): Correctly cache that user exists to avoid a request on mapping new user MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Côme Chilliet --- apps/user_ldap/lib/User_LDAP.php | 2 -- 1 file changed, 2 deletions(-) (limited to 'apps/user_ldap/lib/User_LDAP.php') diff --git a/apps/user_ldap/lib/User_LDAP.php b/apps/user_ldap/lib/User_LDAP.php index 1f001a33db1..b1065fcf7a7 100644 --- a/apps/user_ldap/lib/User_LDAP.php +++ b/apps/user_ldap/lib/User_LDAP.php @@ -463,7 +463,6 @@ class User_LDAP extends BackendUtility implements IUserBackend, UserInterface, I $this->access->connection->writeToCache($cacheKey, $displayName); } if ($user instanceof OfflineUser) { - /** @var OfflineUser $user */ $displayName = $user->getDisplayName(); } return $displayName; @@ -610,7 +609,6 @@ class User_LDAP extends BackendUtility implements IUserBackend, UserInterface, I $uuid, true ); - $this->access->cacheUserExists($username); } else { $this->logger->warning( 'Failed to map created LDAP user with userid {userid}, because UUID could not be determined', -- cgit v1.2.3