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
0587e3d3
Commit
0587e3d3
authored
Mar 13, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
6083ee41
8a8cc919
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
5 deletions
+10
-5
Gemfile
Gemfile
+1
-1
Gemfile.lock
Gemfile.lock
+2
-2
changelogs/unreleased/pravi-gitlab-ce-update-recaptcha.yml
changelogs/unreleased/pravi-gitlab-ce-update-recaptcha.yml
+5
-0
lib/gitlab/recaptcha.rb
lib/gitlab/recaptcha.rb
+2
-2
No files found.
Gemfile
View file @
0587e3d3
...
...
@@ -49,7 +49,7 @@ gem 'jwt', '~> 2.1.0'
gem
'
gssapi
'
,
group: :kerberos
# Spam and anti-bot protection
gem
'
recaptcha
'
,
'~>
3.0
'
,
require:
'recaptcha/rails'
gem
'
recaptcha
'
,
'~>
4.11
'
,
require:
'recaptcha/rails'
gem
'
akismet
'
,
'~> 2.0'
# Two-factor authentication
...
...
Gemfile.lock
View file @
0587e3d3
...
...
@@ -709,7 +709,7 @@ GEM
optimist (>= 3.0.0)
rdoc (6.0.4)
re2 (1.1.1)
recaptcha (
3.0.0
)
recaptcha (
4.13.1
)
json
recursive-open-struct (1.1.0)
redis (3.3.5)
...
...
@@ -1152,7 +1152,7 @@ DEPENDENCIES
rbtrace (~> 0.4)
rdoc (~> 6.0)
re2 (~> 1.1.1)
recaptcha (~>
3.0
)
recaptcha (~>
4.11
)
redis (~> 3.2)
redis-namespace (~> 1.6.0)
redis-rails (~> 5.0.2)
...
...
changelogs/unreleased/pravi-gitlab-ce-update-recaptcha.yml
0 → 100644
View file @
0587e3d3
---
title
:
Apply recaptcha API change in
4.0
merge_request
:
25921
author
:
Praveen Arimbrathodiyil
type
:
other
lib/gitlab/recaptcha.rb
View file @
0587e3d3
...
...
@@ -5,8 +5,8 @@ module Gitlab
def
self
.
load_configurations!
if
Gitlab
::
CurrentSettings
.
recaptcha_enabled
::
Recaptcha
.
configure
do
|
config
|
config
.
public_key
=
Gitlab
::
CurrentSettings
.
recaptcha_site_key
config
.
private
_key
=
Gitlab
::
CurrentSettings
.
recaptcha_private_key
config
.
site_key
=
Gitlab
::
CurrentSettings
.
recaptcha_site_key
config
.
secret
_key
=
Gitlab
::
CurrentSettings
.
recaptcha_private_key
end
true
...
...
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