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:
adding this(client-side):
<script src='https://www.google.com/recaptcha/api.js'></script> <div class="g-recaptcha" data-sitekey="public_key"></div>
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
Post a Comment