debian-mirror-gitlab/app/helpers/recaptcha_helper.rb
2021-12-11 22:18:48 +05:30

10 lines
212 B
Ruby

# frozen_string_literal: true
module RecaptchaHelper
def recaptcha_enabled?
!!Gitlab::Recaptcha.enabled?
end
alias_method :show_recaptcha_sign_up?, :recaptcha_enabled?
end
RecaptchaHelper.prepend_mod