Don't update last online time and ip address when impersonating.
This commit is contained in:
parent
c5ec94289d
commit
a22433f7dd
1 changed files with 2 additions and 4 deletions
|
@ -107,7 +107,7 @@ if($authToken->isValid()) {
|
|||
|
||||
if(!$userInfo->isDeleted()) {
|
||||
$userInfo->setCurrent();
|
||||
|
||||
$userInfo->bumpActivity($_SERVER['REMOTE_ADDR']);
|
||||
$sessions->updateSession(sessionInfo: $sessionInfo, remoteAddr: $_SERVER['REMOTE_ADDR']);
|
||||
if($sessionInfo->shouldBumpExpires())
|
||||
$authToken->applyCookie($sessionInfo->getExpiresTime());
|
||||
|
@ -132,9 +132,7 @@ if($authToken->isValid()) {
|
|||
User::unsetCurrent();
|
||||
}
|
||||
|
||||
if(User::hasCurrent()) {
|
||||
$userInfo->bumpActivity($_SERVER['REMOTE_ADDR']);
|
||||
} else
|
||||
if(!User::hasCurrent())
|
||||
AuthToken::nukeCookie();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue