Use session counting instead of duplicated information while signing in or out

Created on 18 March 2023, over 1 year ago
Updated 22 May 2023, over 1 year ago

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

πŸ“Œ Task
Status

Fixed

Version

3.1

Component

Code

Created by

πŸ‡¦πŸ‡ΊAustralia mingsong πŸ‡¦πŸ‡Ί

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024