Gestion logout

This commit is contained in:
Michael RICOIS 2012-09-04 07:24:28 +00:00
parent 3834fa3111
commit 66e72867ca

View File

@ -74,9 +74,15 @@ class Application_Controller_Plugin_Auth extends Zend_Controller_Plugin_Abstract
$session = new Zend_Session_Namespace('login');
$session->url = $_SERVER['REQUEST_URI'];
if ( $request->getControllerName()=='index' && $request->getActionName()=='index' ) {
$request->setModuleName('default')
->setControllerName('user')
->setActionName('login');
} else {
$request->setModuleName('default')
->setControllerName('user')
->setActionName('logout');
}
//Authentifié => on met à jour la session
} else {