diff --git a/CHANGELOG.md b/CHANGELOG.md index 773e04e..8eb8ea5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 1.1.1 + +- Fix renew password form turnstile error + ## 1.1.0 - Prestashop 8.0.0 compatibility diff --git a/pixel_cloudflare_turnstile.php b/pixel_cloudflare_turnstile.php index 0233891..49bd896 100644 --- a/pixel_cloudflare_turnstile.php +++ b/pixel_cloudflare_turnstile.php @@ -34,7 +34,7 @@ class Pixel_cloudflare_turnstile extends Module implements WidgetInterface public function __construct() { $this->name = 'pixel_cloudflare_turnstile'; - $this->version = '1.1.0'; + $this->version = '1.1.1'; $this->author = 'Pixel Open'; $this->tab = 'front_office_features'; $this->need_instance = 0; @@ -252,7 +252,7 @@ protected function canProcess(string $controllerClass, bool $validate = false): // Reset Password if ($controllerClass === 'PasswordController' && $this->isAvailable(self::FORM_PASSWORD)) { - if ($validate && empty($_POST)) { + if ($validate && (empty($_POST) || (isset($_POST['token'], $_POST['id_customer']) && !isset($_POST['email'])))) { return false; } return true;