]> dev.renevier.net Git - syj.git/blobdiff - application/controllers/UserController.php
use cookies instead of session to manage login
[syj.git] / application / controllers / UserController.php
index 9989d311379c3369e803e5b221ce8b16dee23937..ef7f7be1d2e50da98e10f6f6423febade9c54731 100644 (file)
@@ -61,7 +61,7 @@ class UserController extends Zend_Controller_Action
             }
         }
 
-        $this->_helper->SyjSession->login($user->id);
+        $this->_helper->SyjUserManager->validate($user->pseudo, $user->password);
 
         $data = array('pseudo' => $user->pseudo);
         $this->_helper->SyjApi->setBodyJson($data)->setCode(200);