diff options
author | junichim <junichim@users.noreply.github.com> | 2021-08-04 23:34:08 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-04 23:34:08 +0300 |
commit | 9b228cfb7fd0b0420204f7f27304d798785787e9 (patch) | |
tree | 792cd9ffe570e656c2ad654671d7d7f6de4e668a /exampleSite | |
parent | cb2d782ffa3f198469c54070a7a3c5eb0e5b0849 (diff) |
enable reCAPTCHA widget in contact form page (#278)
* enable reCAPTCHA widget in your page
* If condition in one line.
* Updated doc.
Co-authored-by: Guillermo Guerrero Ibarra <guillermo.guerrero@deliveroo.co.uk>
Diffstat (limited to 'exampleSite')
-rw-r--r-- | exampleSite/config.toml | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 328fc66..c11f45c 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -107,6 +107,23 @@ paginate = 10 formspree_action = "https://formspree.io/sample/of/endpoint" contact_form_ajax = false + # Formspree form supports Google reCAPTCHA Key (type v2). + # If you use this feature, you should enable reCAPTCHA feature in the Formspree dashboard. + # + # By default, Formspree use a redirect page for recaptcha widget. + # If you use a recaptcha widget in your contact page, you should do next steps. + # (if you don't want, skip these steps) + # + # 1. register your site on Google recaptcha admin page: https://www.google.com/recaptcha/admin + # 2. select reCAPTCHA v2 and checkbox widget type. + # 3. remember site key and secret key. + # 4. enter secret key into "Custom reCAPTCHA Key" field in your Formspree form setting page. + # 5. change `enableRecaptchaInContactForm` is to true + # 6. enter site key into `googleRecaptchaKey` to enable a recaptcha widget in your page. + # + enableRecaptchaInContactForm = false + googleRecaptchaKey = "site_key_for_google_recaptcha" + about_us = "<p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.</p>" copyright = "Copyright (c) 2015 - 2016, YourCompany; all rights reserved." |