diff options
author | Stan Hu <stanhu@gmail.com> | 2019-08-14 22:04:42 +0000 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2019-08-14 22:04:42 +0000 |
commit | 0b43c1027f712567d654c3e61c6557db1f4e2faa (patch) | |
tree | f16a5bb2a24e3d0373f02bb576d14be09eac9793 /config | |
parent | 3cae58b3a39153970efd1da90235d7ecd5a59b68 (diff) | |
parent | cdbe66490fe9d4d664562ee21e4b1be28298b411 (diff) | |
download | gitlab-ce-0b43c1027f712567d654c3e61c6557db1f4e2faa.tar.gz |
Merge branch '46548-open-source-alternative-to-recaptcha-for-gitlab-com-registration' into 'master'
Open source alternative to reCAPTCHA for GitLab.com registration
See merge request gitlab-org/gitlab-ce!31625
Diffstat (limited to 'config')
-rw-r--r-- | config/initializers/invisible_captcha.rb | 7 | ||||
-rw-r--r-- | config/locales/invisible_captcha.en.yml | 4 |
2 files changed, 11 insertions, 0 deletions
diff --git a/config/initializers/invisible_captcha.rb b/config/initializers/invisible_captcha.rb new file mode 100644 index 00000000000..5177c730596 --- /dev/null +++ b/config/initializers/invisible_captcha.rb @@ -0,0 +1,7 @@ +# frozen_string_literal: true + +InvisibleCaptcha.setup do |config| + config.honeypots = %w(firstname lastname) + config.timestamp_enabled = true + config.timestamp_threshold = 4 +end diff --git a/config/locales/invisible_captcha.en.yml b/config/locales/invisible_captcha.en.yml new file mode 100644 index 00000000000..5978549c0c3 --- /dev/null +++ b/config/locales/invisible_captcha.en.yml @@ -0,0 +1,4 @@ +en: + invisible_captcha: + sentence_for_humans: If you are human, please ignore this field. + timestamp_error_message: That was a bit too quick! Please resubmit. |