0
0
Fork 0

Add hCaptcha support (#25019)

This commit is contained in:
Claire 2023-05-16 23:27:35 +02:00 committed by GitHub
parent e60414792d
commit bec6a1cad4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 146 additions and 0 deletions

View file

@ -1,4 +1,7 @@
# frozen_string_literal: true
module Admin::SettingsHelper
def captcha_available?
ENV['HCAPTCHA_SECRET_KEY'].present? && ENV['HCAPTCHA_SITE_KEY'].present?
end
end