diff options
Diffstat (limited to 'templates/user')
-rw-r--r-- | templates/user/auth/signup_inner.tmpl | 8 | ||||
-rw-r--r-- | templates/user/auth/signup_openid_register.tmpl | 5 |
2 files changed, 13 insertions, 0 deletions
diff --git a/templates/user/auth/signup_inner.tmpl b/templates/user/auth/signup_inner.tmpl index 356c3e1cdc..58380f57d8 100644 --- a/templates/user/auth/signup_inner.tmpl +++ b/templates/user/auth/signup_inner.tmpl @@ -54,6 +54,14 @@ <div class="h-captcha" data-sitekey="{{ .HcaptchaSitekey }}"></div> </div> {{end}} + {{if and .EnableCaptcha (eq .CaptchaType "mcaptcha")}} + <div class="inline field df ac db-small"> + <span>{{.locale.Tr "captcha"}}</span> + <div class="border-secondary w-100-small" id="mcaptcha__widget-container" style="width: 50%; height: 5em"></div> + <div class="m-captcha" data-sitekey="{{ .McaptchaSitekey }}" data-instance-url="{{ .McaptchaURL }}"></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 5edd7966ff..9fe0a9de1b 100644 --- a/templates/user/auth/signup_openid_register.tmpl +++ b/templates/user/auth/signup_openid_register.tmpl @@ -40,6 +40,11 @@ <div class="h-captcha" data-sitekey="{{ .HcaptchaSitekey }}"></div> </div> {{end}} + {{if and .EnableCaptcha (eq .CaptchaType "mcaptcha")}} + <div class="inline field required"> + <div class="m-captcha" data-sitekey="{{ .McaptchaSitekey }}" data-instance-url="{{ .McaptchaURL }}"></div> + </div> + {{end}} <div class="inline field"> <label for="openid">OpenID URI</label> <input id="openid" value="{{ .OpenID }}" readonly> |