classes/models/fields/FrmFieldCaptcha.php 1 location
|
@@ 145-152 (lines=8) @@
|
| 142 |
|
return $errors; |
| 143 |
|
} |
| 144 |
|
|
| 145 |
|
if ( ! isset( $_POST['g-recaptcha-response']) ) { |
| 146 |
|
// If captcha is missing, check if it was already verified |
| 147 |
|
if ( ! isset( $_POST['recaptcha_checked'] ) || ! wp_verify_nonce( $_POST['recaptcha_checked'], 'frm_ajax' ) ) { |
| 148 |
|
// There was no captcha submitted |
| 149 |
|
$errors[ 'field' . $args['id'] ] = __( 'The captcha is missing from this form', 'formidable' ); |
| 150 |
|
} |
| 151 |
|
return $errors; |
| 152 |
|
} |
| 153 |
|
|
| 154 |
|
$frm_settings = FrmAppHelper::get_settings(); |
| 155 |
|
|
classes/models/FrmEntryValidate.php 1 location
|
@@ 247-254 (lines=8) @@
|
| 244 |
|
return; |
| 245 |
|
} |
| 246 |
|
|
| 247 |
|
if ( ! isset($_POST['g-recaptcha-response']) ) { |
| 248 |
|
// If captcha is missing, check if it was already verified |
| 249 |
|
if ( ! isset( $_POST['recaptcha_checked'] ) || ! wp_verify_nonce( $_POST['recaptcha_checked'], 'frm_ajax' ) ) { |
| 250 |
|
// There was no captcha submitted |
| 251 |
|
$errors[ 'field' . $args['id'] ] = __( 'The captcha is missing from this form', 'formidable' ); |
| 252 |
|
} |
| 253 |
|
return; |
| 254 |
|
} |
| 255 |
|
|
| 256 |
|
$arg_array = array( |
| 257 |
|
'body' => array( |