resLogFactory = $resLogFactory; } /** * Reset Attempts For Frontend * * @param \Magento\Framework\Event\Observer $observer * @return \Magento\Captcha\Observer\ResetAttemptForFrontendObserver */ public function execute(\Magento\Framework\Event\Observer $observer) { /** @var \Magento\Customer\Model\Customer $model */ $model = $observer->getModel(); return $this->resLogFactory->create()->deleteUserAttempts($model->getEmail()); } }