summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSean McGivern <sean@mcgivern.me.uk>2017-02-07 14:21:13 +0000
committerSean McGivern <sean@mcgivern.me.uk>2017-02-07 14:21:13 +0000
commit38cb0347b2ae8dc3d8bd61dd81f5f10af688562b (patch)
treef668cf3725116b72e1cdbc3c95be76a77be6b922 /lib
parent8d5ae0d99f9194b3c6c97f5f90883fe1f07298f8 (diff)
parent3d2954e4570d236a080b0d46698d96a28fd9acec (diff)
downloadgitlab-ce-38cb0347b2ae8dc3d8bd61dd81f5f10af688562b.tar.gz
Merge branch '21518_recaptcha_spam_issues' into 'master'
Use reCaptcha when an issue identified as spam Closes #21518 See merge request !8846
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/recaptcha.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/gitlab/recaptcha.rb b/lib/gitlab/recaptcha.rb
index 70e7f25d518..4bc76ea033f 100644
--- a/lib/gitlab/recaptcha.rb
+++ b/lib/gitlab/recaptcha.rb
@@ -10,5 +10,9 @@ module Gitlab
true
end
end
+
+ def self.enabled?
+ current_application_settings.recaptcha_enabled
+ end
end
end