mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 06:15:19 +08:00
* Issue #18646 Cleanup auth data from session if findIdentity() returns null * Issue #18646 Refactor fix to remove stale identity data from session * Issue #18646 Fix test for HttpBasicAuth (#15658) Co-authored-by: Alexander Makarov <sam@rmcreative.ru> Co-authored-by: Bizley <pawel@positive.codes>
This commit is contained in:
@ -728,6 +728,10 @@ class User extends Component
|
||||
$this->renewIdentityCookie();
|
||||
}
|
||||
}
|
||||
|
||||
if ($this->getIdentity(false) === null) {
|
||||
$this->switchIdentity(null);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user