Skip to content

Commit

Permalink
Merge pull request #437 from Tom-Boyd/improve-v3-readme-example
Browse files Browse the repository at this point in the history
Add key setup to v3 example in README
  • Loading branch information
grosser authored Jan 15, 2024
2 parents 124496f + 90513f5 commit d8172d6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
## Next
* Add key setup to v3 example in README

## 5.16.0
* Allow usage of `options[:turbo]` as well as `options[:turbolinks]` for `recaptcha_v3`
Expand Down
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,14 @@ With v3, you can let all users log in without any intervention at all if their s
threshold, and only show a v2 checkbox recaptcha challenge (fall back to v2) if it is below the
threshold:

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).

```bash
# .env
RECAPTCHA_SITE_KEY=6Lc6BAAAAAAAAChqRbQZcn_yyyyyyyyyyyyyyyyy
RECAPTCHA_SECRET_KEY=6Lc6BAAAAAAAAKN3DRm6VA_xxxxxxxxxxxxxxxxx
```

```erb
<% if @show_checkbox_recaptcha %>
Expand Down

0 comments on commit d8172d6

Please sign in to comment.