]> dev.renevier.net Git - syj.git/blobdiff - application/controllers/ListController.php
use cookies instead of session to manage login
[syj.git] / application / controllers / ListController.php
index cda08aabe990236d020ffb0b9bce202d24ddcd8d..1cf030809025e75f4aced523656451e1548b1800 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 ListController extends Zend_Controller_Action
 {
 
     public function init() {
-        $this->_helper->SyjSession->needsLogin();
+        $this->_helper->SyjUserManager->needsLogin();
 
         $this->_helper->SyjMedias->addScripts('list');
 
@@ -16,7 +16,7 @@ class ListController extends Zend_Controller_Action
     }
 
     public function indexAction() {
-        $user = $this->_helper->SyjSession->user();
+        $user = $this->_helper->SyjUserManager->current();
         $pathMapper = new Syj_Model_PathMapper();
         $list = $pathMapper->fetchByCreator($user);
         $paginator = Zend_Paginator::factory($list);