huseyinsimsekk / AspNetCore-ReCAPTCHAv3

reCAPTCHA v3 Usage in Asp.Net Core MVC
22 stars 2 forks source link
asp asp-net-core aspnetcore aspnetcoremvc core3-1 google-recaptcha mvc recaptcha recaptcha-v3

Google ReCAPTCHA V3 Usage In Asp.Net Core MVC

SS

How To Use

You can use this repository two ways:

Explanation

"GoogleRecaptcha": {
    "VefiyAPIAddress": "https://www.google.com/recaptcha/api/siteverify",
    "Sitekey": "YOUR-GOOGLE-SITEKEY-HERE",
    "Secretkey": "YOUR-GOOGLE-SECRETKEY-HERE"
  },
"RecaptchaThreshold": "0,5"

I set 0.5 for this example. If get to you score is less than 0.5 from Google API, return error page. If score is greater that 0.5 and username-password pair is correct, you are login. Devto Post: Post

Contribute

Please feel free to send PR or issue if you think there is a wrong, mistake, or enhancement.