From: Arthur Schiwon Date: Fri, 18 Oct 2013 10:16:47 +0000 (+0200) Subject: Use display name from magic cookie, fixes #4884 X-Git-Tag: v5.0.13~31^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=036441078b2cf2bb3c900ee6aa5ff72ac98d3bac;p=nextcloud-server.git Use display name from magic cookie, fixes #4884 --- diff --git a/lib/base.php b/lib/base.php index 2ac58b259b2..e8f67db8881 100644 --- a/lib/base.php +++ b/lib/base.php @@ -769,6 +769,7 @@ class OC { OC_User::setMagicInCookie($_COOKIE['oc_username'], $token); // login OC_User::setUserId($_COOKIE['oc_username']); + OC_User::setDisplayName($_COOKIE['oc_username'], $_COOKIE['display_name']); OC_Util::redirectToDefaultPage(); // doesn't return }