Model
Log
Magento\Captcha\Model\ResourceModel\Log
What it does
This class manages the database operations for tracking CAPTCHA login attempts in Magento 2.
Developers use it to log failed login attempts by IP address or username, count those attempts to determine when to show CAPTCHA, and clean up old attempt records.
It's automatically used by Magento's CAPTCHA security feature to prevent brute force attacks.
Public Methods
- logAttempt()
- deleteUserAttempts()
- countAttemptsByRemoteAddress()
- countAttemptsByUserLogin()
- deleteOldAttempts()