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();