diff --git a/Westdc/Authentication/AuthenticationService.php b/Westdc/Authentication/AuthenticationService.php index 00a80b8..5058470 100644 --- a/Westdc/Authentication/AuthenticationService.php +++ b/Westdc/Authentication/AuthenticationService.php @@ -46,10 +46,12 @@ class AuthenticationService return true; } -// view::Dump($e->getRouteMatch()->getMatchedRouteName() . ":" . $controller."-".$action,false); + //view::Dump($e->getRouteMatch()->getMatchedRouteName() . ":" . $controller."-".$action,false); if($rsp = $this->preCookieCheck($e) !== false) + { return $rsp; + } try{ if(!$this->acl->hasResource($controller)) @@ -116,10 +118,8 @@ class AuthenticationService } } - else - { - return false; - } + + return false; } public function response($e) diff --git a/Westdc/Helpers/Auth.php b/Westdc/Helpers/Auth.php index 11c132c..c12b762 100644 --- a/Westdc/Helpers/Auth.php +++ b/Westdc/Helpers/Auth.php @@ -23,7 +23,8 @@ class Auth public function clearIndentity() { - return $this->auth->clearIdentity(); + $this->auth->clearIdentity(); + return true; } public function getIdentity($field = "")