2020-11-16 12:09:05 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module RecaptchaHelper
|
2021-11-02 15:12:22 +00:00
|
|
|
def recaptcha_enabled?
|
2020-11-16 12:09:05 +00:00
|
|
|
!!Gitlab::Recaptcha.enabled?
|
|
|
|
end
|
2021-11-02 15:12:22 +00:00
|
|
|
alias_method :show_recaptcha_sign_up?, :recaptcha_enabled?
|
2020-11-16 12:09:05 +00:00
|
|
|
end
|
2021-09-13 21:08:53 +00:00
|
|
|
|
|
|
|
RecaptchaHelper.prepend_mod
|