diff --git a/inc/location/class-lost-password-form.php b/inc/location/class-lost-password-form.php index ffed418..1190768 100644 --- a/inc/location/class-lost-password-form.php +++ b/inc/location/class-lost-password-form.php @@ -34,7 +34,9 @@ final class LostPasswordForm extends LoginLocation { { parent::activate(); add_action('lostpassword_form', [$this, 'render']); - add_action('lostpassword_post', [$this, 'process_form'], 10, 1); + if (!isset($_POST['woocommerce-lost-password-nonce'])) { + add_action('lostpassword_post', [$this, 'process_form'], 10, 1); + } } public function process_form(WP_Error $errors):void { diff --git a/ogre-captcha.php b/ogre-captcha.php index 7ebd774..6c5c6b3 100644 --- a/ogre-captcha.php +++ b/ogre-captcha.php @@ -107,7 +107,7 @@ if (!class_exists('Ogre\Captcha')) { $this->add_files([ 'inc/location/woocommerce/class-checkout.php', 'inc/location/woocommerce/class-login.php', - // 'inc/location/woocommerce/class-lost-password.php', + 'inc/location/woocommerce/class-lost-password.php', 'inc/location/woocommerce/class-register.php', ]); }