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
ResetAttemptForFrontendAccountEditObserver.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
ResetAttemptForFrontendAccountEditObserver
implements
ObserverInterface
11
{
15
const
FORM_ID
=
'user_edit'
;
16
20
protected
$helper
;
21
25
public
$resLogFactory
;
26
33
public
function
__construct
(
34
\
Magento
\Captcha\Helper\Data
$helper
,
35
\
Magento
\Captcha\Model\
ResourceModel
\LogFactory
$resLogFactory
36
) {
37
$this->helper =
$helper
;
38
$this->resLogFactory =
$resLogFactory
;
39
}
40
47
public
function
execute
(\
Magento
\Framework\Event\Observer
$observer
)
48
{
49
$email
=
$observer
->getEmail();
50
$captchaModel = $this->helper->getCaptcha(self::FORM_ID);
51
$captchaModel->setShowCaptchaInSession(
false
);
52
53
return
$this->resLogFactory->create()->deleteUserAttempts(
$email
);
54
}
55
}
Magento\Catalog\Model\ResourceModel\Product
Definition:
CollectionTest.php:6
$email
$email
Definition:
details.phtml:13
Magento\Captcha\Observer\ResetAttemptForFrontendAccountEditObserver
Definition:
ResetAttemptForFrontendAccountEditObserver.php:10
Magento\Framework\Event\ObserverInterface
Definition:
ObserverInterface.php:16
Magento\Captcha\Observer\ResetAttemptForFrontendAccountEditObserver\__construct
__construct(\Magento\Captcha\Helper\Data $helper, \Magento\Captcha\Model\ResourceModel\LogFactory $resLogFactory)
Definition:
ResetAttemptForFrontendAccountEditObserver.php:33
Magento\Captcha\Observer\ResetAttemptForFrontendAccountEditObserver\$resLogFactory
$resLogFactory
Definition:
ResetAttemptForFrontendAccountEditObserver.php:25
$observer
$observer
Definition:
second_website_with_second_currency.php:38
Magento\Captcha\Observer
Definition:
CaseBackendLoginActionWithInvalidCaptchaReturnsErrorTest.php:6
Magento\Captcha\Observer\ResetAttemptForFrontendAccountEditObserver\execute
execute(\Magento\Framework\Event\Observer $observer)
Definition:
ResetAttemptForFrontendAccountEditObserver.php:47
Magento
Magento\Captcha\Observer\ResetAttemptForFrontendAccountEditObserver\FORM_ID
const FORM_ID
Definition:
ResetAttemptForFrontendAccountEditObserver.php:15
Magento\Captcha\Observer\ResetAttemptForFrontendAccountEditObserver\$helper
$helper
Definition:
ResetAttemptForFrontendAccountEditObserver.php:20