diff options
author | Sean McGivern <sean@mcgivern.me.uk> | 2017-02-07 14:21:13 +0000 |
---|---|---|
committer | Sean McGivern <sean@mcgivern.me.uk> | 2017-02-07 14:21:13 +0000 |
commit | 38cb0347b2ae8dc3d8bd61dd81f5f10af688562b (patch) | |
tree | f668cf3725116b72e1cdbc3c95be76a77be6b922 /lib | |
parent | 8d5ae0d99f9194b3c6c97f5f90883fe1f07298f8 (diff) | |
parent | 3d2954e4570d236a080b0d46698d96a28fd9acec (diff) | |
download | gitlab-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.rb | 4 |
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 |