reCaptcha.Google.Mvc
1.0.4-alpha
This is a prerelease version of reCaptcha.Google.Mvc.
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package reCaptcha.Google.Mvc --version 1.0.4-alpha
NuGet\Install-Package reCaptcha.Google.Mvc -Version 1.0.4-alpha
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="reCaptcha.Google.Mvc" Version="1.0.4-alpha" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add reCaptcha.Google.Mvc --version 1.0.4-alpha
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: reCaptcha.Google.Mvc, 1.0.4-alpha"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install reCaptcha.Google.Mvc as a Cake Addin
#addin nuget:?package=reCaptcha.Google.Mvc&version=1.0.4-alpha&prerelease
// Install reCaptcha.Google.Mvc as a Cake Tool
#tool nuget:?package=reCaptcha.Google.Mvc&version=1.0.4-alpha&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
reCaptcha.Google.Mvc
Install Nuget Package:
Install-Package reCaptcha.Google.Mvc
Documention
Configure Captcha
In Global.asax
file and Application_Start
method you can config Google reCaptcha:
GoogleCaptchaConfiguration.Register(new GoogleCaptchaConfig(CaptchaTheme.Light)
{
EnableInDebuggingMode = false,
Secretkey = "yourSecretkey",
Sitekey = "yourSitekey",
});
Usage
To render Captcha use Html.RenderCaptcha()
:
@Html.RenderCaptcha()
@Html.RenderCaptcha("siteKey") // also you set Sitekey here
To render Captcha script use Html.RenderCaptchaScript()
:
@Html.RenderCaptchaScript()
To validation request use GoogleCaptcha
on the action method:
[HttpPost]
[Route("sing-up")]
[GoogleCaptcha]
public ActionResult Register()
{
// more code
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net is compatible. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
- Microsoft.AspNet.Mvc (>= 5.2.3)
- Newtonsoft.Json (>= 8.0.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.5 | 2,739 | 9/25/2018 |
1.0.4-alpha | 1,003 | 4/6/2018 |
1.0.2-preview | 767 | 4/6/2018 |
The Summery of Pack