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