diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2017-07-31 15:52:53 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2017-07-31 15:52:53 +0200 |
commit | bef4f015ee759bf0c1d938f45871434d33afe8a3 (patch) | |
tree | 9f07d0e0a3d15da567147ed1938ef3b23fca745b /lib/private | |
parent | 98b664a000a1fca359a8154ae7aa8c586aa3f21b (diff) | |
download | nextcloud-server-bef4f015ee759bf0c1d938f45871434d33afe8a3.tar.gz nextcloud-server-bef4f015ee759bf0c1d938f45871434d33afe8a3.zip |
Remove setUidAsDisplayName
This code is a leftover from the old Shibboleth implementation from ownCloud days, nowadays it causes more issues than it does good (such as https://github.com/nextcloud/user_saml/pull/137). Let's remove it for the future thus.
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to 'lib/private')
-rw-r--r-- | lib/private/legacy/user.php | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/lib/private/legacy/user.php b/lib/private/legacy/user.php index feed6f836ca..bb345d7481a 100644 --- a/lib/private/legacy/user.php +++ b/lib/private/legacy/user.php @@ -173,18 +173,6 @@ class OC_User { if ($uid) { if (self::getUser() !== $uid) { self::setUserId($uid); - $setUidAsDisplayName = true; - if($backend instanceof \OCP\UserInterface - && $backend->implementsActions(\OC\User\Backend::GET_DISPLAYNAME)) { - - $backendDisplayName = $backend->getDisplayName($uid); - if(is_string($backendDisplayName) && trim($backendDisplayName) !== '') { - $setUidAsDisplayName = false; - } - } - if($setUidAsDisplayName) { - self::setDisplayName($uid); - } $userSession = self::getUserSession(); $userSession->setLoginName($uid); $request = OC::$server->getRequest(); |