From 25b94691aafa84bd3c648dca2508344655fcf055 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 25 Sep 2022 05:30:39 +0000 Subject: [PATCH] Purge inactive users after 7 days, rather than 30. --- includes/cron/awaiting_email_confirmation.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/cron/awaiting_email_confirmation.php b/includes/cron/awaiting_email_confirmation.php index 2773b8e..877e038 100644 --- a/includes/cron/awaiting_email_confirmation.php +++ b/includes/cron/awaiting_email_confirmation.php @@ -23,7 +23,7 @@ require_once('./includes/api_user.php'); function CronPurgeInactiveUsers() { global $bugsys; - $thirty_days_ago = TIMENOW - (60 * 60 * 24 * 30); + $seven_days_ago = TIMENOW - (60 * 60 * 24 * 7); $inactive_users = bugdar::$db->query(" SELECT user.displayname, user.userid, user.email, useractivation.activator, useractivation.dateline @@ -31,7 +31,7 @@ function CronPurgeInactiveUsers() LEFT JOIN " . TABLE_PREFIX . "useractivation AS useractivation ON (user.userid = useractivation.userid) WHERE user.usergroupid = 3 - AND useractivation.dateline <= $thirty_days_ago + AND useractivation.dateline <= $seven_days_ago "); while ($user = $inactive_users->fetch()) { $data = new UserAPI($bugsys); -- 2.43.5