summaryrefslogtreecommitdiff
path: root/demos/time-tracker/protected/pages/TimeTracker/UserCreate.php
diff options
context:
space:
mode:
Diffstat (limited to 'demos/time-tracker/protected/pages/TimeTracker/UserCreate.php')
-rw-r--r--demos/time-tracker/protected/pages/TimeTracker/UserCreate.php4
1 files changed, 1 insertions, 3 deletions
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());