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
ResetAttemptForBackendObserver.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
ResetAttemptForBackendObserver
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
{
34
return
$this->resLogFactory->create()->deleteUserAttempts(
$observer
->getUser()->getUsername());
35
}
36
}
Magento\Catalog\Model\ResourceModel\Product
Definition:
CollectionTest.php:6
Magento\Framework\Event\ObserverInterface
Definition:
ObserverInterface.php:16
Magento\Captcha\Observer\ResetAttemptForBackendObserver\__construct
__construct(\Magento\Captcha\Model\ResourceModel\LogFactory $resLogFactory)
Definition:
ResetAttemptForBackendObserver.php:20
Magento\Captcha\Observer\ResetAttemptForBackendObserver
Definition:
ResetAttemptForBackendObserver.php:10
$observer
$observer
Definition:
second_website_with_second_currency.php:38
Magento\Captcha\Observer
Definition:
CaseBackendLoginActionWithInvalidCaptchaReturnsErrorTest.php:6
Magento
Magento\Captcha\Observer\ResetAttemptForBackendObserver\execute
execute(\Magento\Framework\Event\Observer $observer)
Definition:
ResetAttemptForBackendObserver.php:32
Magento\Captcha\Observer\ResetAttemptForBackendObserver\$resLogFactory
$resLogFactory
Definition:
ResetAttemptForBackendObserver.php:15