Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-09-01 12:10:58 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-09-01 12:10:58 +0300
commit0356944a052f481f63a4d6f18510e7f42516cc44 (patch)
tree74620c1ca92198cf9d6ed2bc8e22182d0460c8b2 /doc/integration/recaptcha.md
parentdbc554cda7f86f22d34fd1e3a4ec4ab677d55879 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/integration/recaptcha.md')
-rw-r--r--doc/integration/recaptcha.md12
1 files changed, 7 insertions, 5 deletions
diff --git a/doc/integration/recaptcha.md b/doc/integration/recaptcha.md
index 656ed8b8647..ed4c3b4f21e 100644
--- a/doc/integration/recaptcha.md
+++ b/doc/integration/recaptcha.md
@@ -18,8 +18,10 @@ To use reCAPTCHA, first you must create a site and private key.
1. Fill out the form necessary to obtain reCAPTCHA v2 keys.
1. Log in to your GitLab server, with administrator credentials.
1. Go to Reporting Applications Settings in the Admin Area (`admin/application_settings/reporting`).
+1. Expand the **Spam and Anti-bot Protection** section.
1. Fill all reCAPTCHA fields with keys from previous steps.
-1. Check the `Enable reCAPTCHA` checkbox.
+1. Select the **Enable reCAPTCHA** checkbox.
+1. To enable reCAPTCHA for logins via password, select the **Enable reCAPTCHA for login** checkbox.
1. Save the configuration.
1. Change the first line of the `#execute` method in `app/services/spam/spam_verdict_service.rb`
to `return CONDITONAL_ALLOW` so that the spam check short-circuits and triggers the response to
@@ -28,11 +30,11 @@ To use reCAPTCHA, first you must create a site and private key.
NOTE:
Make sure you are viewing an issuable in a project that is public. If you're working with an issue, the issue is public.
-## Enabling reCAPTCHA for user logins via passwords
+## Enable reCAPTCHA for user logins using the HTTP header
-By default, reCAPTCHA is only enabled for user registrations. To enable it for
-user logins via passwords, the `X-GitLab-Show-Login-Captcha` HTTP header must
-be set. For example, in NGINX, this can be done via the `proxy_set_header`
+You can enable reCAPTCHA for user logins via password [in the user interface](#configuration)
+or by setting the `X-GitLab-Show-Login-Captcha` HTTP header.
+For example, in NGINX, this can be done via the `proxy_set_header`
configuration variable:
```nginx