Skip to content

Commit 1c6f6c2

Browse files
committed
updated
1 parent d0d4490 commit 1c6f6c2

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,13 @@ A lang folder will be created under /resources/lang/vendor/GoogleReCaptchaV3/*
136136

137137
Please register all details in config for host_name, site_key, secret_key and site_verify_url.
138138

139+
Register credentials in .env:
140+
141+
````
142+
RECAPTCHA_V3_SECRET_KEY=
143+
RECAPTCHA_V3_SITE_KEY=
144+
````
145+
139146
Specify your Score threshold and action in 'setting', e.g.
140147
``` php
141148
'setting' = [

config/googlerecaptchav3.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
| Google reCAPTCHA credentials, https://www.google.com/recaptcha/admin
4444
|
4545
*/
46-
'secret_key' => '',
46+
'secret_key' => env('RECAPTCHA_V3_SECRET_KEY',''),
4747
/*
4848
|--------------------------------------------------------------------------
4949
| Site Key
@@ -52,15 +52,15 @@
5252
| Google reCAPTCHA credentials, https://www.google.com/recaptcha/admin
5353
|
5454
*/
55-
'site_key' => '',
55+
'site_key' => env('RECAPTCHA_V3_SITE_KEY',''),
5656

5757
/*
5858
|--------------------------------------------------------------------------
5959
| Badge Style
6060
|--------------------------------------------------------------------------
6161
| Type: boolean
6262
| Support:
63-
| - true: the badge will be shown inline with the form, also you can customise your style
63+
| - true: the badge will be shown inline within the form, also you can customise your style
6464
| - false: the badge will be shown in the bottom right side
6565
|
6666
*/
@@ -105,7 +105,7 @@
105105
| Define your score threshold, define your action
106106
| action: Google reCAPTCHA required parameter
107107
| threshold: score threshold
108-
| score_comparision: true/false, if this is true, the system will do score comparsion against your threshold for the action
108+
| score_comparision: true/false, if this is true, the system will do score comparision against your threshold for the action
109109
*/
110110
'setting' => [
111111
[

0 commit comments

Comments
 (0)