From 914776d70153e2db570704def66e03446499c7a3 Mon Sep 17 00:00:00 2001 From: xue <> Date: Thu, 10 Nov 2005 21:57:17 +0000 Subject: Fixed an issue about guest user name setting. --- demos/controls/protected/pages/HomePage.tpl | 2 +- framework/Security/TUserManager.php | 2 +- 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 @@ - +

Welcome! <%=$this->Application->User->Name %>


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(); } } -- cgit v1.2.3