Gestion logout
This commit is contained in:
parent
3834fa3111
commit
66e72867ca
@ -74,9 +74,15 @@ class Application_Controller_Plugin_Auth extends Zend_Controller_Plugin_Abstract
|
|||||||
$session = new Zend_Session_Namespace('login');
|
$session = new Zend_Session_Namespace('login');
|
||||||
$session->url = $_SERVER['REQUEST_URI'];
|
$session->url = $_SERVER['REQUEST_URI'];
|
||||||
|
|
||||||
|
if ( $request->getControllerName()=='index' && $request->getActionName()=='index' ) {
|
||||||
|
$request->setModuleName('default')
|
||||||
|
->setControllerName('user')
|
||||||
|
->setActionName('login');
|
||||||
|
} else {
|
||||||
$request->setModuleName('default')
|
$request->setModuleName('default')
|
||||||
->setControllerName('user')
|
->setControllerName('user')
|
||||||
->setActionName('logout');
|
->setActionName('logout');
|
||||||
|
}
|
||||||
|
|
||||||
//Authentifié => on met à jour la session
|
//Authentifié => on met à jour la session
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user