* @copyright 2007-2019 ETS-Soft * @license Valid for 1 website (or project) for each purchase of license * International Registered Trademark & Property of ETS-Soft */ class PasswordController extends PasswordControllerCore { /* * module: ets_advancedcaptcha * date: 2020-06-01 19:35:18 * version: 1.1.5 */ public function postProcess() { if (Tools::isSubmit('email') && version_compare(_PS_VERSION_, '1.7', '<') && Module::isEnabled('ets_advancedcaptcha') && ($captcha = Module::getInstanceByName('ets_advancedcaptcha')) && (Configuration::get('PA_CAPTCHA_TMP_RE_PASSWORD') || $captcha->checkFile('front','password', true)) && $captcha->hookVal(Tools::getValue('controller', false), 'pwd_recovery')) { $captcha->captchaVal($this->errors); } if (!$this->errors) return parent::postProcess(); } /* * module: ets_advancedcaptcha * date: 2020-06-01 19:35:18 * version: 1.1.5 */ public function initContent() { parent::initContent(); if (version_compare(_PS_VERSION_, '1.7', '<') && Module::isEnabled('ets_advancedcaptcha') && ($captcha = Module::getInstanceByName('ets_advancedcaptcha')) && !(int)Configuration::get('PA_CAPTCHA_TMP_RE_PASSWORD') && ($checkFile = $captcha->checkFile('front','password', true)) && $captcha->hookVal(Tools::getValue('controller', false), 'pwd_recovery')) { $this->setTemplate($checkFile); } } /* * module: ets_advancedcaptcha * date: 2020-06-01 19:35:18 * version: 1.1.5 */ protected function sendRenewPasswordLink() { if (version_compare(_PS_VERSION_, '1.7', '>=') && Module::isEnabled('ets_advancedcaptcha') && ($captcha = Module::getInstanceByName('ets_advancedcaptcha')) && $captcha->checkFile('hook','password-email') && $captcha->hookVal(Tools::getValue('controller', false), 'pwd_recovery')) { $captcha->captchaVal($this->errors); } if (!$this->errors) return parent::sendRenewPasswordLink(); } }