I'm trying to use reCAPTCHA in my asp.net core 2.0 web application. With the the new Razor Pages MVVM you can move all logic to PageModel classes behind your cshtml page.
My problem is that when I post my form the ModelState is always valid. The captcha isn't included in the ModelState. My situation looks like this:
Register.cshtml@addTagHelper *, PaulMiami.AspNetCore.Mvc.Recaptcha
on top of my page
I'm trying to use reCAPTCHA in my asp.net core 2.0 web application. With the the new Razor Pages MVVM you can move all logic to PageModel classes behind your cshtml page.
My problem is that when I post my form the ModelState is always valid. The captcha isn't included in the ModelState. My situation looks like this:
Register.cshtml
@addTagHelper *, PaulMiami.AspNetCore.Mvc.Recaptcha
on top of my page``
` inside a form