authentication = $authentication; } /** * Unlock customer on success login attempt. * @param \Magento\Framework\Event\Observer $observer * @return $this */ public function execute(\Magento\Framework\Event\Observer $observer) { /** @var \Magento\Customer\Model\Customer $customer */ $customer = $observer->getEvent()->getData('model'); $this->authentication->unlock($customer->getId()); return $this; } }