mirror of
https://github.com/gitlabhq/gitlabhq.git
synced 2025-08-01 16:46:16 +00:00
19 lines
415 B
Ruby
19 lines
415 B
Ruby
# frozen_string_literal: true
|
|
|
|
module RecaptchaHelper
|
|
def recaptcha_enabled?
|
|
return false if Gitlab::Qa.request?(request.user_agent)
|
|
|
|
!!Gitlab::Recaptcha.enabled?
|
|
end
|
|
alias_method :show_recaptcha_sign_up?, :recaptcha_enabled?
|
|
|
|
def recaptcha_enabled_on_login?
|
|
return false if Gitlab::Qa.request?(request.user_agent)
|
|
|
|
Gitlab::Recaptcha.enabled_on_login?
|
|
end
|
|
end
|
|
|
|
RecaptchaHelper.prepend_mod
|