diff options
author | Sandro Santilli <strk@kbt.io> | 2017-03-17 17:40:39 +0100 |
---|---|---|
committer | Kim "BKC" Carlbäcker <kim.carlbacker@gmail.com> | 2017-03-20 08:58:00 +0100 |
commit | 97ee88975a43b8d69bd2abfcce0af10fadc172fa (patch) | |
tree | a54eb6e929ebba8d20b04532fa263cf055f65e2f /templates/user/auth | |
parent | f00a4c8078a74a6cdf64e902b7c8952e3bf4c18c (diff) | |
download | gitea-97ee88975a43b8d69bd2abfcce0af10fadc172fa.tar.gz gitea-97ee88975a43b8d69bd2abfcce0af10fadc172fa.zip |
Add captcha support to OpenID based signup
Diffstat (limited to 'templates/user/auth')
-rw-r--r-- | templates/user/auth/signup_openid_register.tmpl | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/templates/user/auth/signup_openid_register.tmpl b/templates/user/auth/signup_openid_register.tmpl index 2aaa3364e1..741ffdf3b5 100644 --- a/templates/user/auth/signup_openid_register.tmpl +++ b/templates/user/auth/signup_openid_register.tmpl @@ -20,6 +20,16 @@ <label for="email">{{.i18n.Tr "email"}}</label> <input id="email" name="email" type="email" value="{{.email}}" required> </div> + {{if .EnableCaptcha}} + <div class="inline field"> + <label></label> + {{.Captcha.CreateHtml}} + </div> + <div class="required inline field {{if .Err_Captcha}}error{{end}}"> + <label for="captcha">{{.i18n.Tr "captcha"}}</label> + <input id="captcha" name="captcha" value="{{.captcha}}" autocomplete="off"> + </div> + {{end}} <div class="inline field"> <label for="openid">OpenID URI</label> <input id="openid" value="{{ .OpenID }}" readonly> |