Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
CustomerLoginSuccessObserver.php
Go to the documentation of this file.
1 <?php
7 
10 
15 {
21  protected $authentication;
22 
26  public function __construct(
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 }
$customer
Definition: customers.php:11