TimothyMeadows / reCAPTCHA.AspNetCore

Google reCAPTCHA v2/v3 for .NET Core 3.x
MIT License
144 stars 51 forks source link

Validation is failing after upgrading asp.net core project from v2.2 to 3.1 #87

Closed accarvajal closed 3 years ago

accarvajal commented 3 years ago

After upgrading my asp.net core project from v2.2 to 3.1, recatcha.Validate(...) stop working as expected. I upgraded recaptcha v3 componente from v2.2.3 to 3.0.10, however, always the validating process is failing. Previous version was working fine.

image image

ghost commented 3 years ago

I guess this package is no longer mantained.

For the recaptcha V3 I follow this stackoverflow link: https://stackoverflow.com/questions/53590011/how-to-implement-recaptcha-v3-in-asp-net For my asp-net mvc application

vas7n commented 3 years ago

I disabled asynchrony and it worked for me.

@(Html.Recaptcha<RecaptchaV3HiddenInput>(RecaptchaSettings?.Value, new RecaptchaV3HiddenInput { IsAsync = false }) )

TimothyMeadows commented 3 years ago

Issue seems resolved, had to disable async in older versions before 3.