summaryrefslogtreecommitdiff
path: root/framework/Security/TAuthManager.php
diff options
context:
space:
mode:
authorxue <>2006-02-17 04:28:06 +0000
committerxue <>2006-02-17 04:28:06 +0000
commitae1c1995b2fec431afe7cca23b2697e1bef17baf (patch)
tree43fb70539492615022e434435a70e35241a898f2 /framework/Security/TAuthManager.php
parent31807816360c93080a6a0da55b858d708cd85c8b (diff)
moved shortcut methods from TComponent to TControl.
Diffstat (limited to 'framework/Security/TAuthManager.php')
-rw-r--r--framework/Security/TAuthManager.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/framework/Security/TAuthManager.php b/framework/Security/TAuthManager.php
index 819b7b36..a41da914 100644
--- a/framework/Security/TAuthManager.php
+++ b/framework/Security/TAuthManager.php
@@ -133,7 +133,7 @@ class TAuthManager extends TModule
{
$this->onAuthenticate($param);
- $service=$this->getService();
+ $service=$this->getApplication()->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->getSession()->itemAt(self::RETURN_URL_VAR);
+ return $this->getApplication()->getSession()->itemAt(self::RETURN_URL_VAR);
}
/**
@@ -244,7 +244,7 @@ class TAuthManager extends TModule
{
if(!$user->getIsGuest())
{
- if(($session=$this->getSession())===null)
+ if(($session=$this->getApplication()->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->getSession())===null)
+ if(($session=$this->getApplication()->getSession())===null)
throw new TConfigurationException('authmanager_session_required');
else
{