summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--demos/controls/protected/pages/HomePage.tpl2
-rw-r--r--framework/Security/TUserManager.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/demos/controls/protected/pages/HomePage.tpl b/demos/controls/protected/pages/HomePage.tpl
index fdef6fdd..3e31801f 100644
--- a/demos/controls/protected/pages/HomePage.tpl
+++ b/demos/controls/protected/pages/HomePage.tpl
@@ -1,5 +1,5 @@
<com:TForm>
-
+<h1>Welcome! <%=$this->Application->User->Name %></h1>
<com:TLiteral Text="literal" />
<com:TTextBox Text="textbox" />
<com:TLabel Text="label" /><br/>
diff --git a/framework/Security/TUserManager.php b/framework/Security/TUserManager.php
index 882c5d5c..ce4d0343 100644
--- a/framework/Security/TUserManager.php
+++ b/framework/Security/TUserManager.php
@@ -66,7 +66,7 @@ class TUser extends TComponent implements IUser
$this->_isGuest=TPropertyValue::ensureBoolean($value);
if($this->_isGuest)
{
- $this->_name='';
+ $this->_name=$this->_manager->getGuestName();
$this->_roles=array();
}
}