Encapsulates Google ReCaptcha functionality for ASP.Net MVC

Install-Package Digitalsmith.ReCaptcha -Version
dotnet add package Digitalsmith.ReCaptcha --version
<PackageReference Include="Digitalsmith.ReCaptcha" Version="" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Digitalsmith.ReCaptcha --version
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

Server-Side Validation can be done by calling await CaptchaVerification.Verify() (yes, it's asynchronous)

Client Side Validation can be included by inserting the following into your form:

       <script src="@(CaptchaVerification.ReCaptchaJavascript)" async defer></script>


The ReCaptcha extension method has several optional parameters to allow flexibility in rendering the ReCaptcha control.

** Configuration:
Make sure you register with Google ReCaptcha for your site and add the Secret and Site Key to your web.config using the following AppSettings:

   <add key="recaptcha:Secret" value="Secret Here"/>
   <add key="recaptcha:SiteKey" value="SiteKey Here"/>

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated 1,556 3/8/2015