Commit 9e33dedc by Qiang Xue

Added return value for User::logout().

parent 3e23f7ad
......@@ -265,6 +265,7 @@ class User extends Component
* This will remove authentication-related session data.
* If `$destroySession` is true, all session data will be removed.
* @param boolean $destroySession whether to destroy the whole session. Defaults to true.
* @return boolean whether the user is logged out
*/
public function logout($destroySession = true)
{
......@@ -279,6 +280,7 @@ class User extends Component
}
$this->afterLogout($identity);
}
return $this->getIsGuest();
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment