summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/legacy/user.php12
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();