-
Bug
-
Resolution: Fixed
-
Major
-
2.9.4, 3.0.4, 3.1, 3.3, 3.3.3
-
MOODLE_29_STABLE, MOODLE_30_STABLE, MOODLE_31_STABLE, MOODLE_33_STABLE
-
MOODLE_33_STABLE, MOODLE_34_STABLE
-
MDL-54106-master -
Difficult
-
Unconfirmed users aren't being deleted (or marked as deleted) by cron in our system.
We have checked that new self enroled users that register via the signup form get user.firstaccess set to zero in database ($user->firstaccess = 0 in moodle/login/signup.php). Then, if they never confirm their account and don't access Moodle, it looks like that they cannot be deleted by moodle/lib/classes/task/delete_unconfirmed_users_task.php because the select query tests firstaccess > 0:
"SELECT * FROM
{user}WHERE confirmed = 0 AND firstaccess > 0 AND firstaccess < ? AND deleted = 0"
Maybe we should use timecreated (set to time() at signup) instead of firstaccess in this query?
- has a non-specific relationship to
-
MDLSITE-5195 Completely unusable orphaned linked accounts - unable to merge / unlink / re-confirm
- Closed
-
MDLSITE-5341 Upgrade moodle.org to 3.4.1
- Closed
-
MDLSITE-5342 Upgrade learn.moodle.net to 3.4.1
- Closed
- is a regression caused by
-
MDL-48282 user->firstaccess should be updated consistently
- Closed