Explorar el Código

Revert "Revert "only include recaptcha v2 on pages that use it""

This reverts commit a56afbdbbb749975b7e7f9cd47e0a7b2b784e75b.

GitOrigin-RevId: 9f3c029d9c4d9c3811e525ec1b6d8bf39ced4945
Ersun Warncke hace 6 años
padre
commit
9057703531
Se han modificado 1 ficheros con 3 adiciones y 12 borrados
  1. 3 12
      services/web/app/views/layout.pug

+ 3 - 12
services/web/app/views/layout.pug

@@ -90,18 +90,9 @@ html(
 
 
 
 
 	body
 	body
-		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(settings.recaptcha && settings.recaptcha.siteKeyV3)
+			script(src="https://www.google.com/recaptcha/api.js?render="+settings.recaptcha.siteKeyV3)
+
 
 
 		- if(typeof(suppressNavbar) == "undefined")
 		- if(typeof(suppressNavbar) == "undefined")
 			include layout/navbar
 			include layout/navbar