Select Git revision
recaptcha.rb
Forked from
GitLab.org / GitLab FOSS
6709 commits behind the upstream repository.
-
Jarka Kadlecova authoredJarka Kadlecova authored
recaptcha.rb 464 B
module Gitlab
module Recaptcha
def self.load_configurations!
if current_application_settings.recaptcha_enabled
::Recaptcha.configure do |config|
config.public_key = current_application_settings.recaptcha_site_key
config.private_key = current_application_settings.recaptcha_private_key
end
true
end
end
def self.enabled?
current_application_settings.recaptcha_enabled
end
end
end