UserLoginEvent
in package
implements
IEvent
Event fired when a user successfully logs in.
This event is triggered after successful authentication when a user logs in to the system, either as an admin or member.
Use cases:
- Track user login activity for security audits
- Send login notifications to users
- Update last login timestamp
- Detect unusual login patterns (location, time)
- Generate analytics on user engagement
- Trigger two-factor authentication workflows
Table of Contents
Interfaces
- IEvent
- Core event interface for the Neuron event system.
Properties
- $ip : string
- $timestamp : float
- $user : User
Methods
- __construct() : mixed
- getName() : string
Properties
$ip read-only
public
string
$ip
$timestamp read-only
public
float
$timestamp
$user read-only
public
User
$user
Methods
__construct()
public
__construct(User $user, string $ip, float $timestamp) : mixed
Parameters
- $user : User
-
User who logged in
- $ip : string
-
IP address of the login
- $timestamp : float
-
Login timestamp (microtime)
getName()
public
getName() : string