は、彼らが異なって呼ばれるようにreCAPTCHAのフォームパラメータ(recaptcha_challenge_fieldとrecaptcha_response_field)をカスタマイズすることは可能ですか?reCAPTCHAのカスタムフォームパラメータ名
基本的に私はcaptchaId、captchaUserResponse呼ばれる とrecaptcha_response_fieldと呼ばれるフォームパラメータrecaptcha_challenge_fieldをしたいです。私は彼らが私が抽象キャプチャの実装ことができますので、名前を変更したい
...リクエストが
POST /個人用サイト/ userSignup
に到着したときに私は気にしたくありませんキャプチャの実装(reCaptchaなど) - 正しいキャプチャの実装に適したパラメータを抽出して、それらのパラメータ名を統一したい。
今、私の要求は、こののようになります。
POST /mysite/userSignup HTTP/1.1
Host: localhost:80
Connection: keep-alive
Content-Length: 416
Cache-Control: max-age=0
Origin: http://localhost:80
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.46 Safari/536.5
Content-Type: application/x-www-form-urlencoded
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Referer: http://localhost:8080/mysite/signup/form.html
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8,hr;q=0.6
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
email:testUser%40gmail.com
username:testUser
password:test
password2:test
forename:Test
surname:User
recaptcha_challenge_field:<google generated challange>
recaptcha_response_field:<user typed captcha answer>
submit:Submit
しかし、私はそれは次のようになりたい:
POST /mysite/userSignup HTTP/1.1
Host: localhost:80
Connection: keep-alive
Content-Length: 416
Cache-Control: max-age=0
Origin: http://localhost:80
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.46 Safari/536.5
Content-Type: application/x-www-form-urlencoded
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Referer: http://localhost:8080/mysite/signup/form.html
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8,hr;q=0.6
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
email:testUser%40gmail.com
username:testUser
password:test
password2:test
forename:Test
surname:User
captchaId:<google generated challange>
captchaUserResponse:<user typed captcha answer>
submit:Submit
エレガントな方法のようなものをフォームのパラメータ名を指定することですこれは:
<script>
var RecaptchaOptions = {
recaptcha_challenge_field_formparam_name : 'captchaId',
recaptcha_response_field_formparam_name: 'captchaUserResponse'
};
</script>
これができない場合は、どのような回避策をお勧めしますか?
https://groups.google.com/forum/?hl=en&fromgroups#!topic/recaptcha/HlKhdgpLVjw – davorp