disable authentication check on logout
This commit is contained in:
parent
fc74474639
commit
771dd362be
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user