]> dev.renevier.net Git - syj.git/blobdiff - application/controllers/ContactController.php
use cookies instead of session to manage login
[syj.git] / application / controllers / ContactController.php
index ef568393d60514b99eb0d4a6aba20cf330456f09..8ff629ba597b42ce02bc1824842dcd9d50569196 100644 (file)
@@ -1,5 +1,5 @@
 <?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 ContactController extends Zend_Controller_Action
@@ -83,7 +83,7 @@ class ContactController extends Zend_Controller_Action
         }
 
         if (empty($formData)) {
-            $user = $this->_helper->SyjSession->user();
+            $user = $this->_helper->SyjUserManager->current();
             if ($user) {
                 $form->contact_email->setValue($user->email)
                                     ->setAttrib('readonly', 'true');