Move hcaptcha service config to config_for yml (#30662)
This commit is contained in:
@@ -10,7 +10,7 @@ module Auth::CaptchaConcern
|
||||
end
|
||||
|
||||
def captcha_available?
|
||||
ENV['HCAPTCHA_SECRET_KEY'].present? && ENV['HCAPTCHA_SITE_KEY'].present?
|
||||
Rails.configuration.x.captcha.secret_key.present? && Rails.configuration.x.captcha.site_key.present?
|
||||
end
|
||||
|
||||
def captcha_enabled?
|
||||
|
||||
Reference in New Issue
Block a user