summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/base/footer.tmpl3
-rw-r--r--templates/user/auth/signup_inner.tmpl5
-rw-r--r--templates/user/auth/signup_openid_register.tmpl5
3 files changed, 13 insertions, 0 deletions
diff --git a/templates/base/footer.tmpl b/templates/base/footer.tmpl
index d5d5970784..24bc44444f 100644
--- a/templates/base/footer.tmpl
+++ b/templates/base/footer.tmpl
@@ -28,6 +28,9 @@
{{if eq .CaptchaType "recaptcha"}}
<script src='{{ URLJoin .RecaptchaURL "api.js"}}' async></script>
{{end}}
+ {{if eq .CaptchaType "hcaptcha"}}
+ <script src='https://hcaptcha.com/1/api.js' async></script>
+ {{end}}
{{end}}
<script src="{{StaticUrlPrefix}}/js/index.js?v={{MD5 AppVer}}"></script>
{{template "custom/footer" .}}
diff --git a/templates/user/auth/signup_inner.tmpl b/templates/user/auth/signup_inner.tmpl
index 3d9ba17ad7..e52aa2e881 100644
--- a/templates/user/auth/signup_inner.tmpl
+++ b/templates/user/auth/signup_inner.tmpl
@@ -51,6 +51,11 @@
<div class="g-recaptcha" data-sitekey="{{ .RecaptchaSitekey }}"></div>
</div>
{{end}}
+ {{if and .EnableCaptcha (eq .CaptchaType "hcaptcha")}}
+ <div class="inline field required">
+ <div class="h-captcha" data-sitekey="{{ .HcaptchaSitekey }}"></div>
+ </div>
+ {{end}}
<div class="inline field">
<label></label>
diff --git a/templates/user/auth/signup_openid_register.tmpl b/templates/user/auth/signup_openid_register.tmpl
index 861e813911..80e98dcc61 100644
--- a/templates/user/auth/signup_openid_register.tmpl
+++ b/templates/user/auth/signup_openid_register.tmpl
@@ -35,6 +35,11 @@
<div class="g-recaptcha" data-sitekey="{{ .RecaptchaSitekey }}"></div>
</div>
{{end}}
+ {{if and .EnableCaptcha (eq .CaptchaType "hcaptcha")}}
+ <div class="inline field required">
+ <div class="h-captcha" data-sitekey="{{ .HcaptchaSitekey }}"></div>
+ </div>
+ {{end}}
<div class="inline field">
<label for="openid">OpenID URI</label>
<input id="openid" value="{{ .OpenID }}" readonly>