mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-09 08:16:11 +00:00
Merge pull request #2541 from overleaf/revert-2382-msm-remove-recaptcha-default-config
Revert "Remove Recaptcha default config" GitOrigin-RevId: 70e5b7b1f52e89a676fc0cea3654fbe5f59739ce
This commit is contained in:
parent
c35ae7024f
commit
08a35b8998
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,4 @@
|
|||
|
||||
doctype html
|
||||
html(
|
||||
lang=(currentLngCode || 'en')
|
||||
|
@ -80,7 +81,7 @@ html(
|
|||
|
||||
|
||||
body
|
||||
if(settings.recaptcha)
|
||||
if(settings.recaptcha && (settings.recaptcha.siteKey || settings.recaptcha.siteKeyV3))
|
||||
if (settings.recaptcha.siteKeyV3)
|
||||
script(src="https://www.google.com/recaptcha/api.js?render="+settings.recaptcha.siteKeyV3)
|
||||
else
|
||||
|
|
|
@ -488,6 +488,11 @@ module.exports = settings =
|
|||
# Example:
|
||||
# header_extras: [{text: "Some Page", url: "http://example.com/some/page", class: "subdued"}]
|
||||
|
||||
recaptcha:
|
||||
disabled:
|
||||
invite: true
|
||||
register: true
|
||||
|
||||
customisation: {}
|
||||
|
||||
# templates: [{
|
||||
|
|
Loading…
Add table
Reference in a new issue