Fix consultation form reCAPTCHA integration and validation
- Add missing recaptcha_response hidden field to quote form - Implement reCAPTCHA validation in quote-handler.php - Add proper error handling for security verification failures - Form submissions now properly validate reCAPTCHA tokens before processing 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -503,6 +503,8 @@ $canonical_url = "https://ukdataservices.co.uk/quote";
|
||||
$_SESSION['form_start_time'] = time();
|
||||
?>
|
||||
<input type="hidden" name="csrf_token" value="<?php echo htmlspecialchars($_SESSION['csrf_token']); ?>">
|
||||
<!-- reCAPTCHA response field -->
|
||||
<input type="hidden" name="recaptcha_response" id="recaptchaResponseQuote" value="">
|
||||
<!-- Honeypot field for spam protection -->
|
||||
<input type="text" name="website" style="display: none !important; position: absolute !important; left: -9999px !important;" tabindex="-1" autocomplete="off">
|
||||
<!-- Step 1: Project Type -->
|
||||
|
||||
Reference in New Issue
Block a user