Info
Version: | 1.0.0 |
Author(s): | Omar dahhane |
Last Update: | Wednesday, September 21, 2016 |
.NET Fiddle: | Create the first Fiddle |
NuGet Url: | https://www.nuget.org/packages/Generate.Recaptcha |
Install
Install-Package Generate.Recaptcha
dotnet add package Generate.Recaptcha
paket add Generate.Recaptcha
Generate.Recaptcha Download (Unzip the "nupkg" after downloading)
Dependencies
Tags
1-create Account in google recaptcha
2-get publickey/privatekey
3-set key in webconfig : ReCaptchaPrivateKey / ReCaptchaPublicKey
4- add "@using GenRecaptcha" in your View
5- add htmlhelper in the view:
5-1- @Html.recaptcha()
5-2- @Html.ValidationMessage("ReCaptcha")
6- add attribute in the controller to validate when submit "[recaptcha]"
7- Validate using modelstate.isvalid in the controller.