Active
Project:
Login History
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
2 Dec 2017 at 22:56 UTC
Updated:
27 Sep 2018 at 15:24 UTC
Jump to comment: Most recent
Comments
Comment #2
gregglesIs it the login_history table or the lhfingerprintjs2 table that presents an issue for you?
Comment #3
astonvictor commentedThere is no possibility to clear data from UI.
You can implement hook_cron():
The example above removes all data from
login_historytable.+ you can add a condition by time
->condition('login', strtotime('-1 week'), '<')So, you can remove only old data.
Comment #4
benjamin_dk commentedSince many of us are required to comply with the GDPR legislation where users have "the right to be forgotten", it is a good idea to provide an admin page with a select option to delete entries that are more than e.g. x months old, and maybe even an option for deleting all login history for a given user.
The pruning of the table could take place when cron is run.
Comment #5
gregglesGood point. Adding a GDPR tag to this to help raise that visibility.