fixed bug in authenticationService

This commit is contained in:
Jianxuan Li 2015-01-19 21:12:40 +08:00
parent bd7e404a5f
commit 911e7d4043
2 changed files with 7 additions and 6 deletions

View File

@ -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,11 +118,9 @@ class AuthenticationService
}
}
else
{
return false;
}
}
public function response($e)
{

View File

@ -23,7 +23,8 @@ class Auth
public function clearIndentity()
{
return $this->auth->clearIdentity();
$this->auth->clearIdentity();
return true;
}
public function getIdentity($field = "")