User can login by cookie only once when autoRenewCookie is set to false

This commit is contained in:
shirase
2017-05-18 01:54:50 +03:00
committed by SilverFire - Dmitry Naumenko
parent 1d44de7b15
commit b6a5697c00
2 changed files with 2 additions and 1 deletions

View File

@ -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();
}