Skip to content

Commit 2b8f872

Browse files
committed
ESURVEY-7857 Verification failed CAPTCHA
1 parent ff3b953 commit 2b8f872

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/main/webapp/WEB-INF/views/error/generic.jsp

+9-1
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,19 @@
4545
$("#runner-captcha-empty-error").show();
4646
return;
4747
}
48+
49+
var data = {email : mail, recaptcha_challenge_field : challenge, 'g-recaptcha-response' : uresponse};
50+
if ($('#captcha_token').length > 0) {
51+
data["captcha_token"] = $('#captcha_token').val();
52+
data["captcha_id"] = $('#captcha_id').val();
53+
data["captcha_useaudio"] = $('#captcha_useaudio').val();
54+
data["captcha_original_cookies"] = $('#captcha_original_cookies').val();
55+
}
4856
4957
$.ajax({
5058
type:'GET',
5159
url: "${contextpath}/runner/createanswerpdf/${caseidforpdfdownload}",
52-
data: {email : mail, recaptcha_challenge_field : challenge, 'g-recaptcha-response' : uresponse},
60+
data: data,
5361
cache: false,
5462
success: function( data ) {
5563

0 commit comments

Comments
 (0)