javascript - Latest recpatcha for node.js -


how use latest captcha google node.js ?!

i know how use this(explained here), don't know how use latest captcha on server side of node.js.

only on client side:

  1. adding this(client-side):

    <script src='https://www.google.com/recaptcha/api.js'></script> <div class="g-recaptcha" data-sitekey="public_key"></div> 
  2. adding on server side, write:

if users send form integrated recaptcha, receive among other things, string containing name "g-recaptcha-response". if want find out if google has verified user in question, send post request following parameters: url: https://www.google.com/recaptcha/api/siteverify secret (needed) ... response (required) value of 'g-recaptcha-response' remoteip ip address of end user on recaptcha documentation website find more information , advanced configurations.

the problem here is, don't know how securely node.js , way not find "g-recaptcha-response" in response.

can give me informations on ?

i using express.js , handlebars.js.


Comments

Popular posts from this blog

mysql - FireDac error 314 - but DLLs are in program directory -

git - How to list all releases of public repository with GitHub API V3 -

c++ - Getting C2512 "no default constructor" for `ClassA` error on the first parentheses of constructor for `ClassB`? -