Ejemplo n.º 1
0
 //[ValidateAntiForgeryToken]
 public IActionResult ValidateCaptcha(string response)
 {
     if (ReCaptcha.ValidateAsync(response, _config["Google:ReCaptcha:SecretKey"]).Result)
     {
         return(new StatusCodeResult(200));
     }
     else
     {
         return(new StatusCodeResult(500));
     }
 }