Revert "Fix user's displayName being overwritten by (old) cookie"

This reverts commit 2a7380cc21.
This commit is contained in:
Morris Jobke 2013-12-05 16:12:46 +01:00
parent cec17fd3e2
commit eba35d28cd
1 changed files with 1 additions and 0 deletions

View File

@ -866,6 +866,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
}