set last_login_update session variable immediately when logging in

This commit is contained in:
Andrew Dolgov 2022-03-29 13:52:22 +03:00
parent 385da287d8
commit 4250386ba5
1 changed files with 2 additions and 0 deletions

View File

@ -68,6 +68,8 @@ class UserHelper {
$user->last_login = Db::NOW();
$user->save();
$_SESSION["last_login_update"] = time();
return true;
}