diff options
Diffstat (limited to 'framework/Security')
-rw-r--r-- | framework/Security/TAuthManager.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/framework/Security/TAuthManager.php b/framework/Security/TAuthManager.php index ca0be56e..c46e32c1 100644 --- a/framework/Security/TAuthManager.php +++ b/framework/Security/TAuthManager.php @@ -194,7 +194,7 @@ class TAuthManager extends TModule if(($session=$application->getSession())===null)
throw new TConfigurationException('authmanager_session_required');
$session->open();
- $sessionInfo=$session->getItems()->itemAt($this->generateUserSessionKey());
+ $sessionInfo=$session->itemAt($this->generateUserSessionKey());
$user=$this->_userManager->getUser(null)->loadFromString($sessionInfo);
$application->setUser($user);
}
@@ -238,7 +238,7 @@ class TAuthManager extends TModule if(($session=$this->getSession())===null)
throw new TConfigurationException('authmanager_session_required');
else
- $session->getItems()->add($this->generateUserSessionKey(),$user->saveToString());
+ $session->add($this->generateUserSessionKey(),$user->saveToString());
}
}
|