From 35fabd947cc304cc7165c0e756620f5c106e252d Mon Sep 17 00:00:00 2001 From: Tom-Boyd Date: Mon, 15 Jan 2024 11:58:51 +0000 Subject: [PATCH 1/2] Add key setup to v3 example in README --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index ddaf99a8..fa91aa53 100644 --- a/README.md +++ b/README.md @@ -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 %> From 90513f51b150067cf11721a7b3550ad193e61eb2 Mon Sep 17 00:00:00 2001 From: Tom-Boyd Date: Mon, 15 Jan 2024 12:04:27 +0000 Subject: [PATCH 2/2] Update CHANGELOG --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 42c05f53..b2d12d75 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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`