summaryrefslogtreecommitdiff
path: root/demos/controls/protected/pages
diff options
context:
space:
mode:
Diffstat (limited to 'demos/controls/protected/pages')
-rw-r--r--demos/controls/protected/pages/LoginPage.php2
-rw-r--r--demos/controls/protected/pages/private/MemberPage.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/demos/controls/protected/pages/LoginPage.php b/demos/controls/protected/pages/LoginPage.php
index 3a3b8432..3b5cc3f9 100644
--- a/demos/controls/protected/pages/LoginPage.php
+++ b/demos/controls/protected/pages/LoginPage.php
@@ -4,7 +4,7 @@ class LoginPage extends TPage
{
public function login($sender,$param)
{
- $manager=$this->Application->AuthManager;
+ $manager=$this->Application->getModule('auth');
if($manager->login($this->username->Text,$this->password->Text))
$this->Application->Response->redirect($this->Application->Request->Items['ReturnUrl']);
else
diff --git a/demos/controls/protected/pages/private/MemberPage.php b/demos/controls/protected/pages/private/MemberPage.php
index 61fd113d..ecec9e4d 100644
--- a/demos/controls/protected/pages/private/MemberPage.php
+++ b/demos/controls/protected/pages/private/MemberPage.php
@@ -4,7 +4,7 @@ class MemberPage extends TPage
{
public function logout($sender,$param)
{
- $this->Application->AuthManager->logout();
+ $this->Application->getModule('auth')->logout();
$this->Application->Response->redirect($this->Application->Service->constructUrl('home'));
}
}