]> dev.renevier.net Git - syj.git/blobdiff - application/controllers/AccountController.php
use cookies instead of session to manage login
[syj.git] / application / controllers / AccountController.php
index 3bd20c6b63018317ef14511b94095cc2ff7262e5..c79b4769cc84439a4fe273838d2e20c0b25c96d8 100644 (file)
@@ -1,12 +1,12 @@
 <?php
-/*  This file is part of Syj, Copyright (c) 2010 Arnaud Renevier,
+/*  This file is part of Syj, Copyright (c) 2010-2011 Arnaud Renevier,
     and is published under the AGPL license. */
 
 class AccountController extends Zend_Controller_Action
 {
 
     public function init() {
-        $this->_helper->SyjSession->needsLogin();
+        $this->_helper->SyjUserManager->needsLogin();
         $this->_helper->SyjMedias->addScripts('account');
 
         $this->view->headLink()->appendStylesheet('css/generic.css', 'all');
@@ -16,7 +16,7 @@ class AccountController extends Zend_Controller_Action
     }
 
     public function indexAction() {
-        $user = $this->_helper->SyjSession->user();
+        $user = $this->_helper->SyjUserManager->current();
         $request = $this->getRequest();
 
         $form = new Syj_Form_Account(array('name' => 'accountform'));