From 622920b001b5e1686822b9060f9e3cf0b5283774 Mon Sep 17 00:00:00 2001 From: pengda <10266652509@qq.com> Date: Sat, 12 Oct 2024 11:46:35 +0800 Subject: [PATCH] =?UTF-8?q?=E7=99=BB=E5=BD=95=E6=9C=89=E6=95=88=E6=9C=9F?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- model/mAdminUser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model/mAdminUser.php b/model/mAdminUser.php index 5ff3e1e..5d18300 100644 --- a/model/mAdminUser.php +++ b/model/mAdminUser.php @@ -97,7 +97,7 @@ class mAdminUser extends mBase { $data = $uid . '|' . $timestamp; $validToken = hash_hmac('sha256', $data, $secretKey); - if (hash_equals($validToken, $tokenHash) && time() - $timestamp < 7200) { + if (hash_equals($validToken, $tokenHash) && time() - $timestamp < 3600 * 24) { return true; } return false;