]> source.dussan.org Git - nextcloud-server.git/commitdiff
Use display name from magic cookie, fixes #4884
authorArthur Schiwon <blizzz@owncloud.com>
Fri, 18 Oct 2013 10:16:47 +0000 (12:16 +0200)
committerArthur Schiwon <blizzz@owncloud.com>
Fri, 18 Oct 2013 10:16:47 +0000 (12:16 +0200)
lib/base.php

index 2ac58b259b2acb763e42bf294fa4514ad907efc7..e8f67db8881ce845943e72a12b43c0f2883e672a 100644 (file)
@@ -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
                        }