Commit 29f174cc by AlexGx

Merge branch 'master' of git://github.com/yiisoft/yii2 into fix-gridview-url

parents 23a669a3 9e33dedc
...@@ -265,6 +265,7 @@ class User extends Component ...@@ -265,6 +265,7 @@ class User extends Component
* This will remove authentication-related session data. * This will remove authentication-related session data.
* If `$destroySession` is true, all session data will be removed. * If `$destroySession` is true, all session data will be removed.
* @param boolean $destroySession whether to destroy the whole session. Defaults to true. * @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) public function logout($destroySession = true)
{ {
...@@ -279,6 +280,7 @@ class User extends Component ...@@ -279,6 +280,7 @@ class User extends Component
} }
$this->afterLogout($identity); $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