X-Git-Url: https://dev.renevier.net/?p=syj.git;a=blobdiff_plain;f=application%2Fcontrollers%2FUserController.php;h=ed078ad9688f2442965301f61e06964249735daa;hp=2bb3fe96032f5bb32bed0270c94d6acf5e95e4e3;hb=05ce9238adfa982746bfc6211b240fd24526af09;hpb=011d9f73366efb4ce530b8b6da72055025419527 diff --git a/application/controllers/UserController.php b/application/controllers/UserController.php index 2bb3fe9..ed078ad 100644 --- a/application/controllers/UserController.php +++ b/application/controllers/UserController.php @@ -47,9 +47,7 @@ class UserController extends Zend_Controller_Action } } - $auth = Zend_Auth::getInstance(); - $auth->getStorage()->write(array('user' => $user->id)); - Zend_Session::rememberMe(); // zend default expiration delay is 2 weeks. Ok, use that value + $this->_helper->SyjSession->login($user->id); $this->_helper->SyjApi->setCode(200); } }