-
Bug
-
Resolution: Fixed
-
Minor
-
3.9.14, 3.10.11, 3.11.7
-
MOODLE_310_STABLE, MOODLE_311_STABLE, MOODLE_39_STABLE
-
MOODLE_311_STABLE, MOODLE_400_STABLE
-
mdl-75010
-
In https://tracker.moodle.org/browse/MDL-36754, tokenpluginfile.php was added as a way to allow images embedded in email notifications to be seen by authorized users. However, when those images are loaded by an email client, it triggers an update to the lastaccess for a user. This can cause a situation where a user has not logged into Moodle (ever, or for a very long time) to end up with a recent lastaccess. In the user filter, this will make it look like users have been active, while no activity will show up for them in the Moodle logs as they have not actually logged in.
Steps to replicate:
- Create a new user with a valid email address
- Enroll them to a course
- Make sure they are subscribed to the announcement forum
- Send an announcement to the user
- Open the email notification
- Check that the user has 0 for lastlogin, 0 for currentlogin, 0 for firstlogin, but a timestamp for lastaccess
Expected behavior:
- lastaccess should not be updated when a user only interacts with an email.
(note that the versions affected probably includes 4.x as well, I just do not have a 4.x site up to confirm, yet)
- has been marked as being related by
-
MDL-73088 Refactor /user/managetoken.php to allow all user keys to be managed and revoked
-
- Open
-