Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

form tag helper uses ENV[] and doesn't check the initializer variable #1

Open
inspire22 opened this issue May 2, 2023 · 1 comment

Comments

@inspire22
Copy link

Thanks for setting this up!

https://github.com/dotenv-org/cloudflare_turnstile/blob/master/lib/cloudflare_turnstile/view_helpers.rb

def site_key
  ENV["CLOUDFLARE_TURNSTILE_SITE_KEY"]
end

Which doesn't work if you set the sitekey in an initializer as it says is possible in the readme.

Also many folks use the same action for get & post, it might be nice to document the cloudflare_turnstile_verify method for calling directly if you don't want to use the before_action.

@inspire22
Copy link
Author

Also might reference https://developers.cloudflare.com/turnstile/reference/testing/ for the testing site keys since that's useful for any tests folks might want to do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant