Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
ae78bd3c
Commit
ae78bd3c
authored
Sep 01, 2021
by
Andy Soiron
Committed by
Kati Paizee
Sep 01, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update reCAPTCHA documentation
parent
9f876cd2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
doc/integration/recaptcha.md
doc/integration/recaptcha.md
+7
-5
No files found.
doc/integration/recaptcha.md
View file @
ae78bd3c
...
@@ -18,8 +18,10 @@ To use reCAPTCHA, first you must create a site and private key.
...
@@ -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.
Fill out the form necessary to obtain reCAPTCHA v2 keys.
1.
Log in to your GitLab server, with administrator credentials.
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.
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.
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.
Save the configuration.
1.
Change the first line of the
`#execute`
method in
`app/services/spam/spam_verdict_service.rb`
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
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.
...
@@ -28,11 +30,11 @@ To use reCAPTCHA, first you must create a site and private key.
NOTE:
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.
Make sure you are viewing an issuable in a project that is public. If you're working with an issue, the issue is public.
## Enabl
ing reCAPTCHA for user logins via passwords
## Enabl
e reCAPTCHA for user logins using the HTTP header
By default, reCAPTCHA is only enabled for user registrations. To enable it for
You can enable reCAPTCHA for user logins via password
[
in the user interface
](
#configuration
)
user logins via passwords, the
`X-GitLab-Show-Login-Captcha`
HTTP header must
or by setting the
`X-GitLab-Show-Login-Captcha`
HTTP header.
be set.
For example, in NGINX, this can be done via the
`proxy_set_header`
For example, in NGINX, this can be done via the
`proxy_set_header`
configuration variable:
configuration variable:
```
nginx
```
nginx
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment