diff --git a/templates/base/footer.tmpl b/templates/base/footer.tmpl
index 7a5fac76b..a23ae5730 100644
--- a/templates/base/footer.tmpl
+++ b/templates/base/footer.tmpl
@@ -67,8 +67,10 @@
{{if .RequireU2F}}
{{end}}
-{{if and .EnableCaptcha (and .CaptchaType (eq .CaptchaType "recaptcha"))}}
-
+{{if .EnableCaptcha}}
+ {{if eq .CaptchaType "recaptcha"}}
+
+ {{end}}
{{end}}
{{if .RequireTribute}}