From 4f3d52a364b81c2af7bac274780af9b7650d6326 Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Fri, 22 Dec 2017 15:22:49 +0100 Subject: never translate login names when requiring with a user id where appropriate, the preLoginNameUsedAsUserName hook should be thrown. Signed-off-by: Arthur Schiwon --- lib/private/User/Manager.php | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'lib') diff --git a/lib/private/User/Manager.php b/lib/private/User/Manager.php index c77e0ac89e1..5f2a010561c 100644 --- a/lib/private/User/Manager.php +++ b/lib/private/User/Manager.php @@ -152,16 +152,6 @@ class Manager extends PublicEmitter implements IUserManager { return $this->cachedUsers[$uid]; } - if (method_exists($backend, 'loginName2UserName')) { - $loginName = $backend->loginName2UserName($uid); - if ($loginName !== false) { - $uid = $loginName; - } - if (isset($this->cachedUsers[$uid])) { - return $this->cachedUsers[$uid]; - } - } - $user = new User($uid, $backend, $this, $this->config); if ($cacheUser) { $this->cachedUsers[$uid] = $user; -- cgit v1.2.3