From 7b38480de52c1d042ea542e2d06913a8c9b645fc Mon Sep 17 00:00:00 2001 From: xue <> Date: Fri, 17 Feb 2006 05:19:25 +0000 Subject: Add TApplicationComponent class and adjusted the relevant classes. --- framework/Security/TAuthManager.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'framework/Security/TAuthManager.php') diff --git a/framework/Security/TAuthManager.php b/framework/Security/TAuthManager.php index a41da914..819b7b36 100644 --- a/framework/Security/TAuthManager.php +++ b/framework/Security/TAuthManager.php @@ -133,7 +133,7 @@ class TAuthManager extends TModule { $this->onAuthenticate($param); - $service=$this->getApplication()->getService(); + $service=$this->getService(); if(($service instanceof TPageService) && $service->getRequestedPagePath()===$this->getLoginPage()) $this->_skipAuthorization=true; } @@ -181,7 +181,7 @@ class TAuthManager extends TModule */ public function getReturnUrl() { - return $this->getApplication()->getSession()->itemAt(self::RETURN_URL_VAR); + return $this->getSession()->itemAt(self::RETURN_URL_VAR); } /** @@ -244,7 +244,7 @@ class TAuthManager extends TModule { if(!$user->getIsGuest()) { - if(($session=$this->getApplication()->getSession())===null) + if(($session=$this->getSession())===null) throw new TConfigurationException('authmanager_session_required'); else $session->add($this->generateUserSessionKey(),$user->saveToString()); @@ -279,7 +279,7 @@ class TAuthManager extends TModule */ public function logout() { - if(($session=$this->getApplication()->getSession())===null) + if(($session=$this->getSession())===null) throw new TConfigurationException('authmanager_session_required'); else { -- cgit v1.2.3