Skip to content

Commit d8172d6

Browse files
authored
Merge pull request #437 from Tom-Boyd/improve-v3-readme-example
Add key setup to v3 example in README
2 parents 124496f + 90513f5 commit d8172d6

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
## Next
2+
* Add key setup to v3 example in README
23

34
## 5.16.0
45
* Allow usage of `options[:turbo]` as well as `options[:turbolinks]` for `recaptcha_v3`

README.md

+8
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,14 @@ With v3, you can let all users log in without any intervention at all if their s
305305
threshold, and only show a v2 checkbox recaptcha challenge (fall back to v2) if it is below the
306306
threshold:
307307

308+
This example sets v2 keys through environment variables. For more information on how to set up keys, please refer to the [documentation here](#alternative-api-key-setup).
309+
310+
```bash
311+
# .env
312+
RECAPTCHA_SITE_KEY=6Lc6BAAAAAAAAChqRbQZcn_yyyyyyyyyyyyyyyyy
313+
RECAPTCHA_SECRET_KEY=6Lc6BAAAAAAAAKN3DRm6VA_xxxxxxxxxxxxxxxxx
314+
```
315+
308316
```erb
309317
310318
<% if @show_checkbox_recaptcha %>

0 commit comments

Comments
 (0)