From 651658b6247cb22fe505191850f5cbe133137508 Mon Sep 17 00:00:00 2001 From: CCEVEN Date: Sat, 15 Sep 2018 17:41:12 +0800 Subject: [PATCH 1/2] Fix RecaptchaOptions.ResponseValidationEndpoint MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Some locations can only use 'https://www.recaptcha.net/recaptcha/api/siteverify' :) --- src/PaulMiami.AspNetCore.Mvc.Recaptcha/RecaptchaService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PaulMiami.AspNetCore.Mvc.Recaptcha/RecaptchaService.cs b/src/PaulMiami.AspNetCore.Mvc.Recaptcha/RecaptchaService.cs index fef7340..bf9697e 100644 --- a/src/PaulMiami.AspNetCore.Mvc.Recaptcha/RecaptchaService.cs +++ b/src/PaulMiami.AspNetCore.Mvc.Recaptcha/RecaptchaService.cs @@ -87,7 +87,7 @@ public RecaptchaControlSettings ControlSettings public async Task ValidateResponseAsync(string response, string remoteIp) { - var request = new HttpRequestMessage(HttpMethod.Post, RecaptchaDefaults.ResponseValidationEndpoint); + var request = new HttpRequestMessage(HttpMethod.Post, _options.ResponseValidationEndpoint); var paramaters = new Dictionary(); paramaters["secret"] = _options.SecretKey; paramaters["response"] = response; From d0501d50c38848e46f0160f8ab4d7d381b932cdc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=87=8E=E5=8E=9F=E5=B0=8F=E7=89=9B?= Date: Wed, 19 Jun 2019 15:48:14 +0800 Subject: [PATCH 2/2] update version --- .../PaulMiami.AspNetCore.Mvc.Recaptcha.csproj | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/PaulMiami.AspNetCore.Mvc.Recaptcha/PaulMiami.AspNetCore.Mvc.Recaptcha.csproj b/src/PaulMiami.AspNetCore.Mvc.Recaptcha/PaulMiami.AspNetCore.Mvc.Recaptcha.csproj index 9580c57..284071c 100644 --- a/src/PaulMiami.AspNetCore.Mvc.Recaptcha/PaulMiami.AspNetCore.Mvc.Recaptcha.csproj +++ b/src/PaulMiami.AspNetCore.Mvc.Recaptcha/PaulMiami.AspNetCore.Mvc.Recaptcha.csproj @@ -1,7 +1,9 @@ - + - This is a helper library for google reCAPTCHA 2.0 + Fix RecaptchaOptions.ResponseValidationEndpoint + +This is a helper library for google reCAPTCHA 2.0 Getting started guide: https://github.com/PaulMiami/reCAPTCHA/wiki/Getting-started @@ -14,9 +16,9 @@ https://github.com/PaulMiami/reCAPTCHA/wiki/Change-log netstandard1.6;net451 true PaulMiami.AspNetCore.Mvc.Recaptcha - PaulMiami.AspNetCore.Mvc.Recaptcha + NepPure.AspNetCore.Mvc.Recaptcha aspnetcore;recaptcha;captcha - https://github.com/PaulMiami/reCAPTCHA + https://github.com/NepPure/reCAPTCHA https://raw.githubusercontent.com/PaulMiami/reCAPTCHA/master/LICENSE git https://github.com/PaulMiami/reCAPTCHA @@ -24,6 +26,8 @@ https://github.com/PaulMiami/reCAPTCHA/wiki/Change-log false false false + 1.3.0 + true