debian-mirror-gitlab/app/helpers/recaptcha_helper.rb

11 lines
212 B
Ruby
Raw Normal View History

2021-01-29 00:20:46 +05:30
# frozen_string_literal: true
module RecaptchaHelper
2021-12-11 22:18:48 +05:30
def recaptcha_enabled?
2021-01-29 00:20:46 +05:30
!!Gitlab::Recaptcha.enabled?
end
2021-12-11 22:18:48 +05:30
alias_method :show_recaptcha_sign_up?, :recaptcha_enabled?
2021-01-29 00:20:46 +05:30
end
2021-11-11 11:23:49 +05:30
RecaptchaHelper.prepend_mod