rchakode / hugo-mx-gateway

:mailbox_with_no_mail: :scroll: Contact/demo form handler for static websites. Deploy in minutes on Google App Engine, Kubernetes, or Docker. Tested with Hugo static site generator.
Apache License 2.0
28 stars 16 forks source link

Add reCaptcha support #2

Closed ccamel closed 4 years ago

ccamel commented 4 years ago

This PR adds reCaptcha support as an additional security layer against unwanted / spam form submission.

This is a fairly straighforward implementation which verifies the challenge code in the g-recaptcha-response POST parameter, if available.

Feel free to make any comment on this one. 😌

image
rchakode commented 4 years ago

yo, Well done, this is a great improvment on security to prevent spams/scam mails. Let me test this on my side before merging it.

ccamel commented 4 years ago

@rchakode I agree! I've made the change in that way. 😌 Thanks.