diff options
Diffstat (limited to 'demos/time-tracker/protected/pages/TimeTracker')
3 files changed, 4 insertions, 4 deletions
diff --git a/demos/time-tracker/protected/pages/TimeTracker/Login.php b/demos/time-tracker/protected/pages/TimeTracker/Login.php index 376953a5..aa12e716 100644 --- a/demos/time-tracker/protected/pages/TimeTracker/Login.php +++ b/demos/time-tracker/protected/pages/TimeTracker/Login.php @@ -45,6 +45,8 @@ class Login extends TPage if($this->Page->IsValid)
{
$auth = $this->Application->getModule('auth');
+ if($this->remember->Checked)
+ $auth->rememberSignon($this->User);
$this->Response->redirect($auth->getReturnUrl());
}
}
diff --git a/demos/time-tracker/protected/pages/TimeTracker/UserCreate.php b/demos/time-tracker/protected/pages/TimeTracker/UserCreate.php index b337bfca..49e64458 100644 --- a/demos/time-tracker/protected/pages/TimeTracker/UserCreate.php +++ b/demos/time-tracker/protected/pages/TimeTracker/UserCreate.php @@ -61,9 +61,7 @@ class UserCreate extends TPage $userDao->addNewUser($newUser, $this->password->Text);
//update the user
- $auth = $this->Application->getModule('auth');
- $auth->updateSessionUser($newUser);
- $this->Application->User = $newUser;
+ $this->User->Manager->updateCredential($newUser);
//return to requested page
$this->Response->redirect($auth->getReturnUrl());
diff --git a/demos/time-tracker/protected/pages/TimeTracker/config.xml b/demos/time-tracker/protected/pages/TimeTracker/config.xml index dac6465d..16391c00 100644 --- a/demos/time-tracker/protected/pages/TimeTracker/config.xml +++ b/demos/time-tracker/protected/pages/TimeTracker/config.xml @@ -6,7 +6,7 @@ <!-- user manager module -->
<module id="users" class="Application.App_Code.UserManager" />
<!-- auth manager module -->
- <module id="auth" class="System.Security.TAuthManager"
+ <module id="auth" class="Application.App_Code.TrackerAuthManager"
UserManager="users" LoginPage="TimeTracker.Login" />
</modules>
|