From 6470f7a9c572fa036a33e4d75f665373f44e10c8 Mon Sep 17 00:00:00 2001 From: Gelu Mihes Date: Tue, 12 May 2026 11:16:21 +0300 Subject: [PATCH] Changes --- api/Controllers/ContactController.cs | 2 +- web/wwwroot/js/main.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/Controllers/ContactController.cs b/api/Controllers/ContactController.cs index 5672f0c..920b594 100644 --- a/api/Controllers/ContactController.cs +++ b/api/Controllers/ContactController.cs @@ -101,7 +101,7 @@ namespace Api.Controllers return ValidationProblem(ModelState); var userIp = HttpContext.Connection.RemoteIpAddress?.ToString(); - var verdict = await _captcha.VerifyAsync(req.CaptchaToken, userIp, "contact", ct); + var verdict = await _captcha.VerifyAsync(req.CaptchaToken, userIp, "subscribe", ct); if (!verdict.Success) { return BadRequest(new ErrorResponse { Error = "Captcha verification failed.", Code = "captcha_verification_failed" }); diff --git a/web/wwwroot/js/main.js b/web/wwwroot/js/main.js index 616d12b..f1afa1a 100644 --- a/web/wwwroot/js/main.js +++ b/web/wwwroot/js/main.js @@ -657,7 +657,7 @@ if (window.grecaptcha && reCaptchaSiteKey) { grecaptcha.ready(function () { - grecaptcha.execute(reCaptchaSiteKey, { action: 'contact' }).then(postSubscribe); + grecaptcha.execute(reCaptchaSiteKey, { action: 'subscribe' }).then(postSubscribe); }); } else { $loader.hide();