diff --git a/Pages/Contact.cshtml b/Pages/Contact.cshtml index d8efecc..c4f4500 100644 --- a/Pages/Contact.cshtml +++ b/Pages/Contact.cshtml @@ -24,7 +24,7 @@
-
+
  • Contact us via direct email at support@ayanova.com
@@ -65,8 +65,7 @@
- +
@@ -99,7 +98,7 @@ -
+ +
+ + +
+ + +
+
-->
@@ -170,7 +177,7 @@

- Ground Zero Tech-Works Inc., 05 - 3610 Christie Parkway Courtenay, BC V9N 9T6 Canada + Ground Zero Tech-Works Inc., British Columbia, Canada
Since 1999 AyaNova® is a registered trademark of Ground Zero Tech-Works Inc. in the United States and other countries. diff --git a/Pages/Contact.cshtml.cs b/Pages/Contact.cshtml.cs index bac432a..90da67b 100644 --- a/Pages/Contact.cshtml.cs +++ b/Pages/Contact.cshtml.cs @@ -51,14 +51,15 @@ namespace contact.Pages } - if (!ReCaptchaPassed( - Request.Form["g-recaptcha-response"], // that's how you get it from the Request object - _configuration.GetSection("GoogleReCaptcha:secret").Value - )) - { - //Return a fail code that will hopefully take us off the spammers list - return StatusCode(500); - } + //2025-11-01 Google dropping support for captcha, just nuking it for now, see how much spam I get + // if (!ReCaptchaPassed( + // Request.Form["g-recaptcha-response"], // that's how you get it from the Request object + // _configuration.GetSection("GoogleReCaptcha:secret").Value + // )) + // { + // //Return a fail code that will hopefully take us off the spammers list + // return StatusCode(500); + // } @@ -166,26 +167,26 @@ namespace contact.Pages } + //2025-11-01 Google dropping support for captcha, just nuking it for now, see how much spam I get + // public static bool ReCaptchaPassed(string gRecaptchaResponse, string secret) + // { + // HttpClient httpClient = new HttpClient(); + // var res = httpClient.GetAsync($"https://www.google.com/recaptcha/api/siteverify?secret={secret}&response={gRecaptchaResponse}").Result; + // if (res.StatusCode != HttpStatusCode.OK) + // { + // // logger.LogError("Error while sending request to ReCaptcha"); + // return false; + // } - public static bool ReCaptchaPassed(string gRecaptchaResponse, string secret) - { - HttpClient httpClient = new HttpClient(); - var res = httpClient.GetAsync($"https://www.google.com/recaptcha/api/siteverify?secret={secret}&response={gRecaptchaResponse}").Result; - if (res.StatusCode != HttpStatusCode.OK) - { - // logger.LogError("Error while sending request to ReCaptcha"); - return false; - } + // string JSONres = res.Content.ReadAsStringAsync().Result; + // dynamic JSONdata = JObject.Parse(JSONres); + // if (JSONdata.success != "true") + // { + // return false; + // } - string JSONres = res.Content.ReadAsStringAsync().Result; - dynamic JSONdata = JObject.Parse(JSONres); - if (JSONdata.success != "true") - { - return false; - } - - return true; - } + // return true; + // } } diff --git a/Pages/Request.cshtml b/Pages/Request.cshtml index dbf9b41..0bbe1b3 100644 --- a/Pages/Request.cshtml +++ b/Pages/Request.cshtml @@ -68,7 +68,7 @@ -
+ +
+ + +
+ +
@@ -89,7 +96,7 @@

- © 2022 Ground Zero Tech-Works, Inc + Ground Zero Tech-Works, Inc
Privacy Policy
diff --git a/Pages/Request.cshtml.cs b/Pages/Request.cshtml.cs index ef519f2..73ce0c9 100644 --- a/Pages/Request.cshtml.cs +++ b/Pages/Request.cshtml.cs @@ -67,15 +67,15 @@ namespace contact.Pages return Page(); } - - if (!ReCaptchaPassed( - Request.Form["g-recaptcha-response"], // that's how you get it from the Request object - _configuration.GetSection("GoogleReCaptcha:secret").Value - )) - { - //Return a fail code that will hopefully take us off the spammers list - return StatusCode(500); - } + //2025-11-01 Google dropping support for captcha, just nuking it for now, see how much spam I get + // if (!ReCaptchaPassed( + // Request.Form["g-recaptcha-response"], // that's how you get it from the Request object + // _configuration.GetSection("GoogleReCaptcha:secret").Value + // )) + // { + // //Return a fail code that will hopefully take us off the spammers list + // return StatusCode(500); + // } @@ -106,7 +106,7 @@ namespace contact.Pages private void PostRequestToSockeye() { - + using var client = new HttpClient(); //client.BaseAddress = new System.Uri("https://sockeye.ayanova.com");///api/v8.0/subscription-server/ @@ -124,7 +124,7 @@ namespace contact.Pages System.Text.Encoding.UTF8, "application/json"); var response = client.PostAsync("https://sockeye.ayanova.com/subscription-server-trial-request", body).Result; - //var response = client.PostAsync("http://localhost:7676/subscription-server-trial-request", body).Result; + //var response = client.PostAsync("http://localhost:7676/subscription-server-trial-request", body).Result; // if (response.IsSuccessStatusCode) // { @@ -202,26 +202,26 @@ namespace contact.Pages } + //2025-11-01 Google dropping support for captcha, just nuking it for now, see how much spam I get + // public static bool ReCaptchaPassed(string gRecaptchaResponse, string secret) + // { + // HttpClient httpClient = new HttpClient(); + // var res = httpClient.GetAsync($"https://www.google.com/recaptcha/api/siteverify?secret={secret}&response={gRecaptchaResponse}").Result; + // if (res.StatusCode != HttpStatusCode.OK) + // { + // // logger.LogError("Error while sending request to ReCaptcha"); + // return false; + // } - public static bool ReCaptchaPassed(string gRecaptchaResponse, string secret) - { - HttpClient httpClient = new HttpClient(); - var res = httpClient.GetAsync($"https://www.google.com/recaptcha/api/siteverify?secret={secret}&response={gRecaptchaResponse}").Result; - if (res.StatusCode != HttpStatusCode.OK) - { - // logger.LogError("Error while sending request to ReCaptcha"); - return false; - } + // string JSONres = res.Content.ReadAsStringAsync().Result; + // dynamic JSONdata = JObject.Parse(JSONres); + // if (JSONdata.success != "true") + // { + // return false; + // } - string JSONres = res.Content.ReadAsStringAsync().Result; - dynamic JSONdata = JObject.Parse(JSONres); - if (JSONdata.success != "true") - { - return false; - } - - return true; - } + // return true; + // } }