summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/private/TemplateLayout.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/private/TemplateLayout.php b/lib/private/TemplateLayout.php
index 284f14c5db4..60fc82efbc6 100644
--- a/lib/private/TemplateLayout.php
+++ b/lib/private/TemplateLayout.php
@@ -122,6 +122,10 @@ class TemplateLayout extends \OC_Template {
parent::__construct('core', 'layout.guest');
\OC_Util::addStyle('guest');
$this->assign('bodyid', 'body-login');
+
+ $userDisplayName = \OC_User::getDisplayName();
+ $this->assign('user_displayname', $userDisplayName);
+ $this->assign('user_uid', \OC_User::getUser());
} else if ($renderAs == 'public') {
parent::__construct('core', 'layout.public');
$this->assign( 'appid', $appId );