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
82fca7fa
Commit
82fca7fa
authored
Aug 20, 2021
by
KunQian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make captcha_modal.vue work in JH
parent
674d02a4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
app/assets/javascripts/captcha/init_recaptcha_script.js
app/assets/javascripts/captcha/init_recaptcha_script.js
+1
-1
lib/gitlab/gon_helper.rb
lib/gitlab/gon_helper.rb
+2
-0
No files found.
app/assets/javascripts/captcha/init_recaptcha_script.js
View file @
82fca7fa
// NOTE: This module will be used in https://gitlab.com/gitlab-org/gitlab/-/merge_requests/52044
import
{
memoize
}
from
'
lodash
'
;
export
const
RECAPTCHA_API_URL_PREFIX
=
'
https://www.google.com/recaptcha/api.js
'
;
export
const
RECAPTCHA_API_URL_PREFIX
=
window
.
gon
.
recaptcha_api_server_url
;
export
const
RECAPTCHA_ONLOAD_CALLBACK_NAME
=
'
recaptchaOnloadCallback
'
;
/**
...
...
lib/gitlab/gon_helper.rb
View file @
82fca7fa
...
...
@@ -21,6 +21,8 @@ module Gitlab
gon
.
sentry_environment
=
Gitlab
.
config
.
sentry
.
environment
end
gon
.
recaptcha_api_server_url
=
::
Recaptcha
.
configuration
.
api_server_url
gon
.
recaptcha_sitekey
=
Gitlab
::
CurrentSettings
.
recaptcha_site_key
gon
.
gitlab_url
=
Gitlab
.
config
.
gitlab
.
url
gon
.
revision
=
Gitlab
.
revision
gon
.
feature_category
=
Gitlab
::
ApplicationContext
.
current_context_attribute
(
:feature_category
).
presence
...
...
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