mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-16 22:39:52 +08:00
Merge branch 'master' of git://github.com/yiisoft/yii2 into fix-gridview-url
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user