mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Revert "only include recaptcha v2 on pages that use it"
GitOrigin-RevId: a56afbdbbb749975b7e7f9cd47e0a7b2b784e75b
This commit is contained in:
parent
db610f7efb
commit
6808262783
1 changed files with 12 additions and 3 deletions
|
@ -90,9 +90,18 @@ html(
|
|||
|
||||
|
||||
body
|
||||
if(settings.recaptcha && settings.recaptcha.siteKeyV3)
|
||||
script(src="https://www.google.com/recaptcha/api.js?render="+settings.recaptcha.siteKeyV3)
|
||||
|
||||
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
|
||||
script(src="https://www.google.com/recaptcha/api.js?render=explicit")
|
||||
div(
|
||||
id="recaptcha"
|
||||
class="g-recaptcha"
|
||||
data-sitekey=settings.recaptcha.siteKey
|
||||
data-size="invisible"
|
||||
data-badge="inline"
|
||||
)
|
||||
|
||||
- if(typeof(suppressNavbar) == "undefined")
|
||||
include layout/navbar
|
||||
|
|
Loading…
Reference in a new issue