mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-06 14:19:23 +08:00
User can login by cookie only once when autoRenewCookie
is set to false
This commit is contained in:

committed by
SilverFire - Dmitry Naumenko

parent
1d44de7b15
commit
b6a5697c00
@ -609,7 +609,7 @@ class User extends Component
|
||||
}
|
||||
|
||||
/* Ensure any existing identity cookies are removed. */
|
||||
if ($this->enableAutoLogin) {
|
||||
if ($this->enableAutoLogin && ($this->autoRenewCookie || !$identity)) {
|
||||
$this->removeIdentityCookie();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user