X-Git-Url: https://dev.renevier.net/?a=blobdiff_plain;f=application%2Fcontrollers%2FLoginController.php;h=dd07b1e07d833c9c700e6a55456638bf69c38f9a;hb=3c4eae3c94fd2369087cd3cc73e195cbc48fc433;hp=07bb40b874b484c90a20e239eb0b59ccf7127210;hpb=9efd079d59d269811abc4c551b2f39ab2e6a05fb;p=syj.git diff --git a/application/controllers/LoginController.php b/application/controllers/LoginController.php index 07bb40b..dd07b1e 100644 --- a/application/controllers/LoginController.php +++ b/application/controllers/LoginController.php @@ -7,8 +7,7 @@ class LoginController extends Zend_Controller_Action public function init() { $this->view->headTitle($this->view->translate("login")); $this->view->headScript()->appendFile('js/prototype.js'); - $this->view->headScript()->appendFile('js/forms.js'); - $this->view->headScript()->appendFile('js/highlight.js'); + $this->view->headScript()->appendFile('js/utils.js'); $this->view->headScript()->appendFile('js/login.js'); $this->view->headLink()->appendStylesheet('css/generic.css'); $this->view->headLink()->appendStylesheet('css/login.css'); @@ -52,9 +51,7 @@ class LoginController extends Zend_Controller_Action } $userid = $authAdapter->getResultRowObject('id')->id; - $auth->getStorage()->write(array('user' => $userid)); - Zend_Session::rememberMe(); // zend default expiration delay is 2 weeks. Ok, use that value - + $this->_helper->SyjSession->login($userid); if ($httprequest) { $api = $this->_helper->SyjApi->setCode(200); @@ -80,8 +77,7 @@ class LoginController extends Zend_Controller_Action } public function logoutAction() { - Zend_Session::start(); - Zend_Session::destroy(); + $this->_helper->SyjSession->logout(); $this->redirect(); }