Beispiel #1
0
 /**
  * Reset Attempts For Frontend
  *
  * @param \Magento\Framework\Event\Observer $observer
  * @return \Magento\Captcha\Model\Observer
  */
 public function resetAttemptForFrontend($observer)
 {
     return $this->_getResourceModel()->deleteUserAttempts($observer->getModel()->getEmail());
 }
 /**
  * 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());
 }