Currently this cannot be used in Razor Pages (e.g. the built-in ASP.NET Core Identity default pages) as the only public way of getting a RecaptchaVerificationHelper is an extension method on System.Web.Mvc.Controller since the constructor is declared internal.
This provides extension methods on Microsoft.AspNetCore.Mvc.RazorPages.PageModel which should require no changes to the example code, other than to mention that it (probably) goes in PageModel.OnPostAsync rather than a controller method decorated with HttpPost.
Currently this cannot be used in Razor Pages (e.g. the built-in ASP.NET Core Identity default pages) as the only public way of getting a
RecaptchaVerificationHelper
is an extension method onSystem.Web.Mvc.Controller
since the constructor is declaredinternal
.This provides extension methods on
Microsoft.AspNetCore.Mvc.RazorPages.PageModel
which should require no changes to the example code, other than to mention that it (probably) goes inPageModel.OnPostAsync
rather than a controller method decorated withHttpPost
.