UserLoginFailedEvent
in package
implements
IEvent
Event fired when a login attempt fails.
This event is triggered when authentication fails due to invalid credentials, locked account, or other authentication errors.
Use cases:
- Security monitoring and brute force detection
- Automatically lock accounts after failed attempts
- Send security alerts for repeated failures
- Track potential security threats and attack patterns
- Generate security reports for compliance
- Implement progressive delays on failed attempts
Table of Contents
Interfaces
- IEvent
- Core event interface for the Neuron event system.
Properties
- $identifier : string
- $ip : string
- $reason : string
- $timestamp : float
Methods
- __construct() : mixed
- getName() : string
Properties
$identifier read-only
public
string
$identifier
$ip read-only
public
string
$ip
$reason read-only
public
string
$reason
$timestamp read-only
public
float
$timestamp
Methods
__construct()
public
__construct(string $identifier, string $ip, float $timestamp, string $reason) : mixed
Parameters
- $identifier : string
-
Username or email used in failed attempt
- $ip : string
-
IP address of the failed login
- $timestamp : float
-
Failure timestamp (microtime)
- $reason : string
-
Reason for failure (invalid_credentials, account_locked, etc.)
getName()
public
getName() : string