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
6763bbc9
Commit
6763bbc9
authored
Nov 26, 2021
by
Kati Paizee
Committed by
Fiona Neill
Nov 26, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Edit reCAPTCHA steps for style
parent
831b8720
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
10 deletions
+11
-10
doc/integration/recaptcha.md
doc/integration/recaptcha.md
+11
-10
No files found.
doc/integration/recaptcha.md
View file @
6763bbc9
...
@@ -12,20 +12,21 @@ to confirm that a real user, not a bot, is attempting to create an account.
...
@@ -12,20 +12,21 @@ to confirm that a real user, not a bot, is attempting to create an account.
## Configuration
## Configuration
To use reCAPTCHA, first
you must
create a site and private key.
To use reCAPTCHA, first create a site and private key.
1.
Go to the
[
Google reCAPTCHA page
](
https://www.google.com/recaptcha/admin
)
.
1.
Go to the
[
Google reCAPTCHA page
](
https://www.google.com/recaptcha/admin
)
.
1.
Fill out the form necessary to obtain reCAPTCHA v2 keys.
1.
To get reCAPTCHA v2 keys, fill in the form and select
**Submit**
.
1.
Log in to your GitLab server, with administrator credentials.
1.
Sign in to your GitLab server as an administrator.
1.
Go to Reporting Applications Settings in the Admin Area (
`admin/application_settings/reporting`
).
1.
On the top bar, select
**Menu > Admin**
.
1.
Expand the
**Spam and Anti-bot Protection**
section.
1.
On the left sidebar, select
**Settings > Reporting**
(
`admin/application_settings/reporting`
).
1.
Fill all reCAPTCHA fields with keys from previous steps.
1.
Expand
**Spam and Anti-bot Protection**
.
1.
In the reCAPTCHA fields, enter the keys you obtained in the previous steps.
1.
Select 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.
To enable reCAPTCHA for logins via password, select the
**Enable reCAPTCHA for login**
checkbox.
1.
S
ave the configuration
.
1.
S
elect
**Save changes**
.
1.
Change the first line of the
`#execute`
method in
`app/services/spam/spam_verdict_service.rb`
1.
To short-circuit the spam check and trigger the response to return
`recaptcha_html`
:
to
`return CONDITIONAL_ALLOW`
so that the spam check short-circuits and triggers the response to
1.
Open
`app/services/spam/spam_verdict_service.rb`
.
return
`recaptcha_html
`
.
1.
Change the first line of the
`#execute`
method to
`return CONDITIONAL_ALLOW
`
.
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.
...
...
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