You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I receive the exception if the recaptcha is not filled at all.
I'm using v2 recaptcha.
The excpetion is thrown on
RecaptchaVerificationResult result = recaptcha1.Verify();
at line 104 of RecaptchaVerificationHelper you have to handle the empty response not throwing an exception an retiurning a failed verification.
if (string.IsNullOrEmpty(Response)) { throw new InvalidOperationException("Reponse is emptry."); }
Not filling the recaptcha is equivalent to a failed verification not to an exception.
Attached a working version of RecaptchaVerificationHelper.cs
The text was updated successfully, but these errors were encountered:
I am getting the same error.
RecaptchaNet 3.1.0
ApiVersion: 2
Framework: 4.6
Tested with test and productive keys both get the same validation error. When you click on "I'm not a robot" the Verify() method returns OK with the parameters success = true.
If the checkbox is not clicked, the exception occurs: "Reponse is emptry."
Is there a way to solve this?
RecaptchaVerificationHelper.txt
I receive the exception if the recaptcha is not filled at all.
I'm using v2 recaptcha.
The excpetion is thrown on
RecaptchaVerificationResult result = recaptcha1.Verify();
at line 104 of RecaptchaVerificationHelper you have to handle the empty response not throwing an exception an retiurning a failed verification.
if (string.IsNullOrEmpty(Response)) { throw new InvalidOperationException("Reponse is emptry."); }
Not filling the recaptcha is equivalent to a failed verification not to an exception.
Attached a working version of RecaptchaVerificationHelper.cs
The text was updated successfully, but these errors were encountered: