diff --git a/local/modules/Front/Controller/ContactController.php b/local/modules/Front/Controller/ContactController.php index 8bab6d1f..fa398328 100644 --- a/local/modules/Front/Controller/ContactController.php +++ b/local/modules/Front/Controller/ContactController.php @@ -56,7 +56,7 @@ class ContactController extends BaseFrontController if($checkModule && $checkModule->getActivate()){ $checkCaptchaEvent = new ReCaptchaCheckEvent(); $this->dispatch(ReCaptchaEvents::CHECK_CAPTCHA_EVENT, $checkCaptchaEvent); - if ($checkCaptchaEvent->isHuman() == false) { throw new FormValidationException('Invalid reCAPTCHA'); } + if ($checkCaptchaEvent->isHuman() == false) { throw new FormValidationException('Veuillez confirmer que vous n\'ĂȘtes pas un robot.'); } } $this->getMailer()->sendSimpleEmailMessage( diff --git a/local/modules/Front/Controller/CustomerController.php b/local/modules/Front/Controller/CustomerController.php index df3f065a..56b9f5d9 100644 --- a/local/modules/Front/Controller/CustomerController.php +++ b/local/modules/Front/Controller/CustomerController.php @@ -171,7 +171,7 @@ class CustomerController extends BaseFrontController if($checkModule && $checkModule->getActivate()){ $checkCaptchaEvent = new ReCaptchaCheckEvent(); $this->dispatch(ReCaptchaEvents::CHECK_CAPTCHA_EVENT, $checkCaptchaEvent); - if ($checkCaptchaEvent->isHuman() == false) { throw new \Exception('Invalid reCAPTCHA'); } + if ($checkCaptchaEvent->isHuman() == false) { throw new \Exception('Veuillez confirmer que vous n\'ĂȘtes pas un robot.'); } } $customerCreateEvent = $this->createEventInstance($form->getData());