Permalink
Browse files

$CFG->deleteunconfirmed can be used to specify the time period

within which a user must confirm by email  (default is still 7 days)
  • Loading branch information...
1 parent f8b2bb3 commit c6c43ae9de461c07bbd13a5cf1928c4604fc30b3 moodler committed Mar 1, 2004
Showing with 5 additions and 1 deletion.
  1. +5 −1 admin/cron.php
View
6 admin/cron.php
@@ -68,8 +68,12 @@
/// Delete users who haven't confirmed within seven days
+
+ if (empty($CFG->deleteunconfirmed)) { // value in hours
+ $CFG->deleteunconfirmed = 168;
+ }
- $oneweek = $timenow - (7 * 24 * 3600);
+ $oneweek = $timenow - ($CFG->deleteunconfirmed * 3600);
if ($users = get_users_unconfirmed($oneweek)) {
foreach ($users as $user) {
if (delete_records("user", "id", $user->id)) {

0 comments on commit c6c43ae

Please sign in to comment.