diff options
author | Marin Jankovski <marin@gitlab.com> | 2015-12-29 13:45:48 +0300 |
---|---|---|
committer | Marin Jankovski <marin@gitlab.com> | 2015-12-29 13:45:48 +0300 |
commit | 450ea1911d9a74136be7ce7a2bf304ba34e596eb (patch) | |
tree | 01ab49990e03826e44e0b7f7bcc2328d3276ef40 /app/views/admin/application_settings/_form.html.haml | |
parent | 2ef0fecadf01d403f45cc5366fb8c3bd8e8bd94f (diff) | |
parent | 1ae157a3fe740fc6947d91733bd367c27cae80a0 (diff) |
Merge branch 'recaptcha_to_stable' into '8-3-stable'
Recaptcha to stable
See merge request !2236
Diffstat (limited to 'app/views/admin/application_settings/_form.html.haml')
-rw-r--r-- | app/views/admin/application_settings/_form.html.haml | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/app/views/admin/application_settings/_form.html.haml b/app/views/admin/application_settings/_form.html.haml index 6c355366948..c8dc31faf43 100644 --- a/app/views/admin/application_settings/_form.html.haml +++ b/app/views/admin/application_settings/_form.html.haml @@ -144,5 +144,27 @@ .col-sm-10 = f.number_field :max_artifacts_size, class: 'form-control' + %fieldset + %legend Spam and Anti-bot Protection + .form-group + .col-sm-offset-2.col-sm-10 + .checkbox + = f.label :recaptcha_enabled do + = f.check_box :recaptcha_enabled + Enable reCAPTCHA + %span.help-block#recaptcha_help_block Helps preventing bots from creating accounts + + .form-group + = f.label :recaptcha_site_key, 'reCAPTCHA Site Key', class: 'control-label col-sm-2' + .col-sm-10 + = f.text_field :recaptcha_site_key, class: 'form-control' + .help-block + Generate site and private keys here: + %a{ href: 'http://www.google.com/recaptcha', target: 'blank'} http://www.google.com/recaptcha + .form-group + = f.label :recaptcha_private_key, 'reCAPTCHA Private Key', class: 'control-label col-sm-2' + .col-sm-10 + = f.text_field :recaptcha_private_key, class: 'form-control' + .form-actions = f.submit 'Save', class: 'btn btn-primary' |