Problem/Motivation
The log message for user login or logout currently is 'user name( uid)', which is redundant as the user name and ID have been in the 'ref_numeric' and 'ref_char' field. Also Drupal core will log those information while user sign in or out.
Steps to reproduce
- Install event_log_track_auth module
- Login as admin user.
- Check the Drupal logs and event logs
- In the Drupal log, there is a log for this action, such as 'Session opened for admin.'
- In the Events log, there is a log for the same action, in which the description is 'admin (uid 1)'
Proposed resolution
Log the number of sessions belonging to the user instead. Then the description of the log will look like 'SC(3)', in which SC means Session Count. The number 3 means there are 3 sessions belonging to that user.
It is a similar idea as Session Limit module.
Remaining tasks
N/A
User interface changes
N/A
API changes
N/A
Data model changes
N/A
Issue fork events_log_track-3348812
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:
Comments
Comment #3
MingsongComment #4
MingsongComment #5
MingsongComment #8
smustgrave CreditAttribution: smustgrave at Mobomo commentedComment #9
MingsongThanks.