2019-02-20 16:56:19 +00:00
|
|
|
= form_for @application_setting, url: reporting_admin_application_settings_path(anchor: 'js-spam-settings'), html: { class: 'fieldset-form' } do |f|
|
2018-03-28 16:48:53 +00:00
|
|
|
= form_errors(@application_setting)
|
|
|
|
|
|
|
|
%fieldset
|
2018-06-13 07:40:55 +00:00
|
|
|
.form-group
|
|
|
|
.form-check
|
|
|
|
= f.check_box :recaptcha_enabled, class: 'form-check-input'
|
|
|
|
= f.label :recaptcha_enabled, class: 'form-check-label' do
|
2021-04-23 00:09:47 +00:00
|
|
|
= _("Enable reCAPTCHA")
|
2019-06-25 22:32:54 +00:00
|
|
|
%span.form-text.text-muted#recaptcha_help_block
|
2019-07-18 08:27:02 +00:00
|
|
|
= _('Helps prevent bots from creating accounts.')
|
|
|
|
.form-group
|
|
|
|
.form-check
|
|
|
|
= f.check_box :login_recaptcha_protection_enabled, class: 'form-check-input'
|
|
|
|
= f.label :login_recaptcha_protection_enabled, class: 'form-check-label' do
|
2021-04-23 00:09:47 +00:00
|
|
|
= _("Enable reCAPTCHA for login")
|
2019-07-18 08:27:02 +00:00
|
|
|
%span.form-text.text-muted#recaptcha_help_block
|
|
|
|
= _('Helps prevent bots from brute-force attacks.')
|
2018-06-13 07:40:55 +00:00
|
|
|
.form-group
|
2021-04-23 00:09:47 +00:00
|
|
|
= f.label :recaptcha_site_key, _('reCAPTCHA Site Key'), class: 'label-bold'
|
2021-01-31 18:09:51 +00:00
|
|
|
= f.text_field :recaptcha_site_key, class: 'form-control gl-form-input'
|
2018-06-13 07:40:55 +00:00
|
|
|
.form-text.text-muted
|
2021-04-23 00:09:47 +00:00
|
|
|
= _("Generate site and private keys at")
|
2018-06-13 07:40:55 +00:00
|
|
|
%a{ href: 'http://www.google.com/recaptcha', target: 'blank' } http://www.google.com/recaptcha
|
|
|
|
|
|
|
|
.form-group
|
2021-04-23 00:09:47 +00:00
|
|
|
= f.label :recaptcha_private_key, _('reCAPTCHA Private Key'), class: 'label-bold'
|
2019-07-18 08:27:02 +00:00
|
|
|
.form-group
|
2021-01-31 18:09:51 +00:00
|
|
|
= f.text_field :recaptcha_private_key, class: 'form-control gl-form-input'
|
2018-06-13 07:40:55 +00:00
|
|
|
|
2021-01-12 15:10:37 +00:00
|
|
|
.form-group
|
|
|
|
.form-check
|
|
|
|
= f.check_box :invisible_captcha_enabled, class: 'form-check-input'
|
|
|
|
= f.label :invisible_captcha_enabled, class: 'form-check-label' do
|
|
|
|
= _('Enable Invisible Captcha during sign up')
|
|
|
|
%span.form-text.text-muted
|
|
|
|
= _('Helps prevent bots from creating accounts.')
|
|
|
|
|
2018-06-13 07:40:55 +00:00
|
|
|
.form-group
|
|
|
|
.form-check
|
|
|
|
= f.check_box :akismet_enabled, class: 'form-check-input'
|
|
|
|
= f.label :akismet_enabled, class: 'form-check-label' do
|
|
|
|
Enable Akismet
|
2021-04-23 00:09:47 +00:00
|
|
|
%span.form-text.text-muted#akismet_help_block= _("Helps prevent bots from creating issues")
|
2018-06-13 07:40:55 +00:00
|
|
|
|
|
|
|
.form-group
|
2021-04-23 00:09:47 +00:00
|
|
|
= f.label :akismet_api_key, _('Akismet API Key'), class: 'label-bold'
|
2021-01-31 18:09:51 +00:00
|
|
|
= f.text_field :akismet_api_key, class: 'form-control gl-form-input'
|
2018-06-13 07:40:55 +00:00
|
|
|
.form-text.text-muted
|
|
|
|
Generate API key at
|
|
|
|
%a{ href: 'http://www.akismet.com', target: 'blank' } http://www.akismet.com
|
|
|
|
|
|
|
|
.form-group
|
|
|
|
.form-check
|
|
|
|
= f.check_box :unique_ips_limit_enabled, class: 'form-check-input'
|
|
|
|
= f.label :unique_ips_limit_enabled, class: 'form-check-label' do
|
2021-04-23 00:09:47 +00:00
|
|
|
= _("Limit sign in from multiple ips")
|
2018-06-13 07:40:55 +00:00
|
|
|
%span.form-text.text-muted#unique_ip_help_block
|
2021-04-23 00:09:47 +00:00
|
|
|
= _("Helps prevent malicious users hide their activity")
|
2018-06-13 07:40:55 +00:00
|
|
|
|
|
|
|
.form-group
|
2021-04-23 00:09:47 +00:00
|
|
|
= f.label :unique_ips_limit_per_user, _('IPs per user'), class: 'label-bold'
|
2021-01-31 18:09:51 +00:00
|
|
|
= f.number_field :unique_ips_limit_per_user, class: 'form-control gl-form-input'
|
2018-06-13 07:40:55 +00:00
|
|
|
.form-text.text-muted
|
2021-04-23 00:09:47 +00:00
|
|
|
= _("Maximum number of unique IPs per user")
|
2018-06-13 07:40:55 +00:00
|
|
|
|
|
|
|
.form-group
|
2021-04-23 00:09:47 +00:00
|
|
|
= f.label :unique_ips_limit_time_window, _('IP expiration time'), class: 'label-bold'
|
2021-01-31 18:09:51 +00:00
|
|
|
= f.number_field :unique_ips_limit_time_window, class: 'form-control gl-form-input'
|
2018-06-13 07:40:55 +00:00
|
|
|
.form-text.text-muted
|
2021-04-23 00:09:47 +00:00
|
|
|
= _("How many seconds an IP will be counted towards the limit")
|
2018-03-28 16:48:53 +00:00
|
|
|
|
2020-05-22 09:08:09 +00:00
|
|
|
.form-group
|
|
|
|
.form-check
|
|
|
|
= f.check_box :spam_check_endpoint_enabled, class: 'form-check-input'
|
|
|
|
= f.label :spam_check_endpoint_enabled, _('Enable Spam Check via external API endpoint'), class: 'form-check-label'
|
|
|
|
.form-text.text-muted= _('Define custom rules for what constitutes spam, independent of Akismet')
|
|
|
|
.form-group
|
|
|
|
= f.label :spam_check_endpoint_url, _('URL of the external Spam Check endpoint'), class: 'label-bold'
|
2021-01-31 18:09:51 +00:00
|
|
|
= f.text_field :spam_check_endpoint_url, class: 'form-control gl-form-input'
|
2021-04-30 18:10:09 +00:00
|
|
|
.form-group
|
|
|
|
= f.label :spam_check_api_key, _('Spam Check API Key'), class: 'gl-font-weight-bold'
|
|
|
|
= f.text_field :spam_check_api_key, class: 'form-control gl-form-input'
|
|
|
|
.form-text.text-muted= _('The API key used by GitLab for accessing the Spam Check service endpoint')
|
2020-05-22 09:08:09 +00:00
|
|
|
|
2021-04-23 00:09:47 +00:00
|
|
|
= f.submit _('Save changes'), class: "gl-button btn btn-confirm"
|