Log in
Interface

AlertInterface

Magento\TwoFactorAuth\Model\AlertInterface

What it does

This interface defines the contract for triggering security alerts in Magento's two-factor authentication module.

Developers implement this interface to create alert handlers that respond to security events like failed login attempts, suspicious activities, or configuration changes.

It provides constants for alert levels (info, warning, error) and standardized parameter names for consistent event reporting across the 2FA system.

Public Methods

  • event()