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-customer
Observer
CustomerLoginSuccessObserver.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Customer\Observer
;
7
8
use
Magento\Customer\Model\AuthenticationInterface
;
9
use
Magento\Framework\Event\ObserverInterface
;
10
14
class
CustomerLoginSuccessObserver
implements
ObserverInterface
15
{
21
protected
$authentication
;
22
26
public
function
__construct
(
27
AuthenticationInterface
$authentication
28
) {
29
$this->authentication =
$authentication
;
30
}
31
37
public
function
execute
(\
Magento
\Framework\Event\
Observer
$observer
)
38
{
40
$customer
=
$observer
->getEvent()->getData(
'model'
);
41
$this->authentication->unlock(
$customer
->getId());
42
return
$this;
43
}
44
}
Magento\Customer\Model\AuthenticationInterface
Definition:
AuthenticationInterface.php:15
$customer
$customer
Definition:
customers.php:11
Magento\Framework\Event\ObserverInterface
Definition:
ObserverInterface.php:16
Magento\Customer\Observer
Definition:
AfterAddressSaveObserver.php:7
Magento\Customer\Observer\CustomerLoginSuccessObserver
Definition:
CustomerLoginSuccessObserver.php:14
$observer
$observer
Definition:
second_website_with_second_currency.php:38
Magento\Customer\Observer\CustomerLoginSuccessObserver\$authentication
$authentication
Definition:
CustomerLoginSuccessObserver.php:21
Magento\Customer\Observer\CustomerLoginSuccessObserver\__construct
__construct(AuthenticationInterface $authentication)
Definition:
CustomerLoginSuccessObserver.php:26
Magento
Magento\Framework\Event\ObserverInterface\execute
execute(Observer $observer)
Magento\Framework\Event\Observer
Definition:
Observer.php:14