LexLibrary.Google.reCAPTCHA 1.0.0

Package Description

There is a newer version of this package available.
See the version list below for details.
Install-Package LexLibrary.Google.reCAPTCHA -Version 1.0.0
dotnet add package LexLibrary.Google.reCAPTCHA --version 1.0.0
<PackageReference Include="LexLibrary.Google.reCAPTCHA" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add LexLibrary.Google.reCAPTCHA --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: LexLibrary.Google.reCAPTCHA, 1.0.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install LexLibrary.Google.reCAPTCHA as a Cake Addin
#addin nuget:?package=LexLibrary.Google.reCAPTCHA&version=1.0.0

// Install LexLibrary.Google.reCAPTCHA as a Cake Tool
#tool nuget:?package=LexLibrary.Google.reCAPTCHA&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

LexLibrary.Google.reCAPTCHA

使用 HtmlHelper + ValidateAttribute 快速將 Google reCAPTCHA 驗證加入你的網站

NuGet:https://www.nuget.org/packages/LexLibrary.Google.reCAPTCHA/

Blog:https://blog.exfast.me

Support

  • Google reCAPTCHA v1
  • Google reCAPTCHA v2
  • Google reCAPTCHA v3

Example

新增設定檔到 Startup.cs

services.AddGoogleCaptcha(new GoogleCaptchaSetting { })

View

@Html.GooglereCaptchaV2()
@Html.GooglereCaptchaV3("/login")

Controller

[GoogleCaptchaValidate(Version = GoogleCaptchaVersion.v2, ErrorMessage = "驗證失敗,請重新再試。")]
[GoogleCaptchaValidate(Version = GoogleCaptchaVersion.v3, ErrorMessage = "驗證失敗,請重新再試。")]

LexLibrary.Google.reCAPTCHA

使用 HtmlHelper + ValidateAttribute 快速將 Google reCAPTCHA 驗證加入你的網站

NuGet:https://www.nuget.org/packages/LexLibrary.Google.reCAPTCHA/

Blog:https://blog.exfast.me

Support

  • Google reCAPTCHA v1
  • Google reCAPTCHA v2
  • Google reCAPTCHA v3

Example

新增設定檔到 Startup.cs

services.AddGoogleCaptcha(new GoogleCaptchaSetting { })

View

@Html.GooglereCaptchaV2()
@Html.GooglereCaptchaV3("/login")

Controller

[GoogleCaptchaValidate(Version = GoogleCaptchaVersion.v2, ErrorMessage = "驗證失敗,請重新再試。")]
[GoogleCaptchaValidate(Version = GoogleCaptchaVersion.v3, ErrorMessage = "驗證失敗,請重新再試。")]

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.1 416 11/22/2018
1.0.0 367 11/22/2018