ReCaptcha : modif du message d'erreur
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user