mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-26 04:28:41 +00:00
fix: c30374732e
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
fd9cc2b302
commit
354c417737
@ -81,7 +81,7 @@ class Auth {
|
||||
|
||||
if ($myUser) {
|
||||
if (!isset($_SESSION['last_login'])) {
|
||||
$_SESSION['last_login'] = $myUser['last_login'];
|
||||
$_SESSION['last_login'] = strtotime($myUser['last_login']);
|
||||
}
|
||||
if ((time() - $_SESSION['last_login']) > 60 * 60 * 24 * 7) { // 1 week
|
||||
Auth::logout();
|
||||
|
Loading…
Reference in New Issue
Block a user