Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
module-captcha
Observer
ResetAttemptForFrontendObserver.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Captcha\Observer
;
7
8
use
Magento\Framework\Event\ObserverInterface
;
9
10
class
ResetAttemptForFrontendObserver
implements
ObserverInterface
11
{
15
public
$resLogFactory
;
16
20
public
function
__construct
(
21
\
Magento
\Captcha\Model\
ResourceModel
\LogFactory
$resLogFactory
22
) {
23
$this->resLogFactory =
$resLogFactory
;
24
}
25
32
public
function
execute
(\
Magento
\Framework\Event\Observer
$observer
)
33
{
35
$model
=
$observer
->getModel();
36
37
return
$this->resLogFactory->create()->deleteUserAttempts(
$model
->getEmail());
38
}
39
}
Magento\Catalog\Model\ResourceModel\Product
Definition:
CollectionTest.php:6
Magento\Captcha\Observer\ResetAttemptForFrontendObserver\$resLogFactory
$resLogFactory
Definition:
ResetAttemptForFrontendObserver.php:15
$model
$model
Definition:
enable_catalog_product_reindex_schedule.php:9
Magento\Framework\Event\ObserverInterface
Definition:
ObserverInterface.php:16
$observer
$observer
Definition:
second_website_with_second_currency.php:38
Magento\Captcha\Observer
Definition:
CaseBackendLoginActionWithInvalidCaptchaReturnsErrorTest.php:6
Magento\Captcha\Observer\ResetAttemptForFrontendObserver
Definition:
ResetAttemptForFrontendObserver.php:10
Magento
Magento\Captcha\Observer\ResetAttemptForFrontendObserver\__construct
__construct(\Magento\Captcha\Model\ResourceModel\LogFactory $resLogFactory)
Definition:
ResetAttemptForFrontendObserver.php:20
Magento\Framework\Event\ObserverInterface\execute
execute(Observer $observer)