Tweet, Share & Like [ EnAcCiOn ]

 

FeedBurner FeedCount Y Facebook | EnAcCiOn

Send Voicemail | EnAcCiOn

Contact me using vCita | EnAcCiOn

Contact me using vCita | EnAcCiOn

Meeting Scheduler Powered by vCita

sábado, 16 de mayo de 2015

how to get recaptcha client verification parameter g-recaptcha-response after user confirms he is not a robot?

I am trying to implement Google recaptcha in a form. The form issues an HTTP post request to a server where it sends the for data as a JSON object. I added Google reCAPTCHA just before the form submit button with the following div tag:
Also I added the required JavaScript file in the head tag: Now the submit button issues a request to a JavaScript function as follows: hence I am using Angular JS $scope.issueVideoUploadRequest = function () { var requestVideoUploadParameters = { videoSource: $scope.videoSource, title: $scope.title, description: $scope.description, videoLanguage: $scope.language, tagsList: $scope.tagsList }; $http({ method: "POST", dataType: "json", data: requestVideoUploadParameters, url: 'http://localhost:8080/OampSeniorProjectV2/rs/content/requestUploadForm' }).success(function (response, status, headers) { $scope.alertMessageVideoRequest = response; alert(response); }).error(function (response, status, headers, config) { $scope.reloadPage(); }); }; The form is submitted to a REST services. The question is, where to find the g-recaptcha-response parameter so I send it back to the server along with the form JSON object? As I need this response value to perform the server side user verification. -- You received this message because you are subscribed to the Google Groups "reCAPTCHA" group. To unsubscribe from this group and stop receiving emails from it, send an email to recaptcha+unsubscribe@googlegroups.com. To post to this group, send email to recaptcha@googlegroups.com. Visit this group at http://bit.ly/1dkFnYd. For more options, visit http://bit.ly/P65DvS.

No hay comentarios:

EnAcCiOn

Contador Web | EnAcCiOn

EnAcCiOn

EnAcCiOn

EnAcCiOn

Blog Archive | EnAcCiOn