From 879b7667a68b1a9e7288edb16cb09bd0d89b427b Mon Sep 17 00:00:00 2001 From: David Cap Date: Tue, 19 Mar 2019 23:04:51 -0700 Subject: [PATCH] add ability to change recaptcha domain closes #159 --- src/config/recaptcha.php | 12 ++++++++++++ src/views/captcha.blade.php | 4 ++-- src/views/captchav2.blade.php | 4 ++-- 3 files changed, 16 insertions(+), 4 deletions(-) diff --git a/src/config/recaptcha.php b/src/config/recaptcha.php index 5caa2c4..de7b2e0 100644 --- a/src/config/recaptcha.php +++ b/src/config/recaptcha.php @@ -63,4 +63,16 @@ 'version' => 2, + /* + |-------------------------------------------------------------------------- + | Recaptcha domain + |-------------------------------------------------------------------------- + | + | This can be set either to www.google.com or www.recaptcha.net for use in + | locations where www.google.com is not available + | https://developers.google.com/recaptcha/docs/faq#can-i-use-recaptcha-globally + | + */ + 'recaptcha_domain' => 'www.google.com' + ]; diff --git a/src/views/captcha.blade.php b/src/views/captcha.blade.php index 832ead6..541c3a3 100644 --- a/src/views/captcha.blade.php +++ b/src/views/captcha.blade.php @@ -4,9 +4,9 @@ @endif + src="//{{ config('recaptcha.recaptcha_domain', 'www.google.com') }}/recaptcha/api/challenge?k=">