resLogFactory = $resLogFactory; } /** * Reset Attempts For Backend * * @param \Magento\Framework\Event\Observer $observer * @return \Magento\Captcha\Observer\ResetAttemptForBackendObserver */ public function execute(\Magento\Framework\Event\Observer $observer) { return $this->resLogFactory->create()->deleteUserAttempts($observer->getUser()->getUsername()); } }