Similar to watchdog. This was originally part of the project description but I think it makes more sense as an issue.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Cottser created an issue. See original summary.

catapipper made their first commit to this issue’s fork.

catapipper’s picture

I took a stab at this, I'm still learning the correct coding standards and how to make these types of administrative settings. It's expanding on what greggles posted on Issue 2026903 and my own basic knowledge. I hope it at least gives someone a starting point.

The code creates two configuration settings, one integer for Per User and one for Total. Using this information, it then has a cron that removes login history events based on these integer values. It will also check on user login to see if the number of logins is above the per user limit and removes the oldest.

catapipper’s picture

Status: Active » Needs work

jcnventura’s picture

Status: Needs work » Needs review
Christopher Riley’s picture

This would be a nice feature to have, hopefully it will be rolled into a release.

jcnventura’s picture

Version: 8.x-1.x-dev » 2.x-dev
Svitlana’s picture

Status: Needs review » Reviewed & tested by the community

I tested it in Drupal 10. Works fine (per user)

jcnventura’s picture

Status: Reviewed & tested by the community » Needs work

I was almost to the point of committing this, but I started to dislike the security implications of some users being able to erase the login history of others. For that reason, the keep_total option must be removed.

  • jcnventura authored 079b3060 on 2.x
    Issue #2619042 by catapipper, jcnventura, Svitlana: Optionally delete...
jcnventura’s picture

Status: Needs work » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.