Add reCAPTCHA validation and prevent form submission when invalid
[MAILPOET-6182]
This commit is contained in:
committed by
Aschepikov
parent
b7a6f0bea1
commit
ccc1786614
@@ -114,6 +114,9 @@ class Renderer {
|
||||
</noscript>
|
||||
<input class="mailpoet_recaptcha_field" type="hidden" name="recaptchaWidgetId">
|
||||
</div>';
|
||||
if ($size !== 'invisible') {
|
||||
$html .= '<div class="parsley-errors-list parsley-required mailpoet_error_recaptcha">' . __('This field is required.', 'mailpoet') . '</div>';
|
||||
}
|
||||
|
||||
return $html;
|
||||
}
|
||||
|
Reference in New Issue
Block a user