From d1a2758514ce49d6a38dbb5221ea385241893616 Mon Sep 17 00:00:00 2001 From: Cooper Dalrymple Date: Wed, 26 Aug 2026 17:30:44 -0500 Subject: [PATCH] Nevermind, I figured it out. The standard lost password action was getting in the way. --- inc/location/class-lost-password-form.php | 4 +++- ogre-captcha.php | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) 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', ]); }