From 18fff2e3f6b043bb820dbcec6250c4f27bea22e1 Mon Sep 17 00:00:00 2001 From: striker Date: Sun, 15 Mar 2026 14:41:22 +0300 Subject: [PATCH] feat: activate Cloudflare Turnstile for sag24.ru contact form Set site key and secret key for sag24-website-contact-form widget Co-Authored-By: Claude Sonnet 4.6 --- public/api/contact.php | 2 +- src/config.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/public/api/contact.php b/public/api/contact.php index aa6a0a5..5d17223 100644 --- a/public/api/contact.php +++ b/public/api/contact.php @@ -62,7 +62,7 @@ if (mb_strlen($phone) > 30) { http_response_code(400); echo json_encode(['error if (mb_strlen($message) > 5000) { http_response_code(400); echo json_encode(['error' => 'Message too long']); exit; } // ─── Cloudflare Turnstile verification ─────────────────────────────────────── -$TURNSTILE_SECRET = ''; // TODO: Create widget at dash.cloudflare.com → Turnstile → Add site (sag24.ru) +$TURNSTILE_SECRET = '0x4AAAAAACrQSySNBa2C2FWQq2ty1_UyLhc'; if ($TURNSTILE_SECRET) { if (!$turnstileToken) { http_response_code(400); diff --git a/src/config.js b/src/config.js index 9c7bfe7..100c683 100644 --- a/src/config.js +++ b/src/config.js @@ -5,4 +5,4 @@ export const FORM_ENDPOINT = '/api/contact.php' export const EMAIL = 'info@sag24.ru' // Cloudflare Turnstile — создать виджет: dash.cloudflare.com → Turnstile → Add site (sag24.ru) -export const TURNSTILE_SITE_KEY = '' +export const TURNSTILE_SITE_KEY = '0x4AAAAAACrQS-dAb7E9RGPQ'