disable authentication check on logout

This commit is contained in:
Michael RICOIS 2012-07-19 15:51:16 +00:00
parent fc74474639
commit 771dd362be

View File

@ -10,8 +10,9 @@ class Application_Controller_Plugin_Auth extends Zend_Controller_Plugin_Abstract
public function preDispatch(Zend_Controller_Request_Abstract $request)
{
$checkAuth = true;
if ($request->getControllerName()=='user' && $request->getActionName()=='login'){
$checkAuth = false;
if ($request->getControllerName()=='user' &&
($request->getActionName()=='login' || $request->getActionName()=='logout') ) {
$checkAuth = false;
}
if ($checkAuth)