pdupavillon / express-recaptcha

Implementation of google recaptcha v2 & V3 solutions for express.js
MIT License
128 stars 21 forks source link

Add result into callback #8

Closed IliaKrainiev closed 7 years ago

IliaKrainiev commented 7 years ago

if we turn off the domain or package name checking on reCAPTCHA's end, we need to check it on our server. You can find this here - https://developers.google.com/recaptcha/docs/domain_validation. Response of post request on /recaptcha/api/siteverify have a needed parameter for this checking, called - "hostname".