summaryrefslogtreecommitdiffstats
path: root/templates/user/auth/signup_inner.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'templates/user/auth/signup_inner.tmpl')
-rw-r--r--templates/user/auth/signup_inner.tmpl7
1 files changed, 6 insertions, 1 deletions
diff --git a/templates/user/auth/signup_inner.tmpl b/templates/user/auth/signup_inner.tmpl
index 52386f6dcf..cd969276b9 100644
--- a/templates/user/auth/signup_inner.tmpl
+++ b/templates/user/auth/signup_inner.tmpl
@@ -29,7 +29,7 @@
<label for="retype">{{.i18n.Tr "re_type"}}</label>
<input id="retype" name="retype" type="password" value="{{.retype}}" autocomplete="off" required>
</div>
- {{if .EnableCaptcha}}
+ {{if and .EnableCaptcha (eq .CaptchaType "image")}}
<div class="inline field">
<label></label>
{{.Captcha.CreateHtml}}
@@ -39,6 +39,11 @@
<input id="captcha" name="captcha" value="{{.captcha}}" autocomplete="off">
</div>
{{end}}
+ {{if and .EnableCaptcha (eq .CaptchaType "recaptcha")}}
+ <div class="inline field required">
+ <div class="g-recaptcha" data-sitekey="{{ .RecaptchaSitekey }}"></div>
+ </div>
+ {{end}}
<div class="inline field">
<label></label>