reCAPTCHA settings for test sites.

Created on 23 February 2020, over 4 years ago
Updated 9 December 2023, 10 months ago

I wasn't able to find this documented here anywhere (although i am sure it must be) - but for D7 I did find it on Drupal Answers.. and sorted out for D8.

If you want to override the recaptcha failing due to your test site not being the domain configured on Google for the API key; then try overriding your keys with these in your settings.php:

D7:
$conf['recaptcha_secret_key'] = '6LeIxAcTAAAAAGG-vFI1TnRWxMZNFuojJ4WifJWe';
$conf['recaptcha_site_key'] = '6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI';

D8:
$config['recaptcha.settings']['secret_key'] = '6LeIxAcTAAAAAGG-vFI1TnRWxMZNFuojJ4WifJWe';
$config['recaptcha.settings']['site_key'] = '6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI';

📌 Task
Status

Closed: outdated

Version

2.0

Component

Documentation

Created by

🇨🇦Canada liquidcms

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024