1
0
Fork 0

CB/tmpl: signup info (captcha + throwaway mail)

updates the registration template to add a notice regarding
- throwaway email providers (fixes Codeberg/Community#174)
- people having difficulties solving our captchas
codeberg-1.18
fnetx 2021-05-01 19:09:19 +02:00
parent 861e7226d0
commit af952af4e7
No known key found for this signature in database
GPG Key ID: 03870C95EE9F2661
2 changed files with 5 additions and 2 deletions

View File

@ -3,7 +3,7 @@
<div class="ui stackable middle very relaxed page grid">
<div class="sixteen wide center aligned centered column">
<img width="75%" src="{{AssetUrlPrefix}}/img/logo.svg" alt="Codeberg"/><br>
<a href="/user/sign_up"><button style='border-radius:50vh;' class="ui button huge blue">{{.i18n.Tr "auth.sign_up_now" | Str2html}}</button></a>
<a href="/user/sign_up"><button style='border-radius:50vh;' class="ui button huge blue">{{.locale.Tr "auth.sign_up_now" | Str2html}}</button></a>
</div>
</div>
{{if eq .Lang "undefined"}}

View File

@ -23,7 +23,9 @@
<label for="email">{{.locale.Tr "email"}}</label>
<input id="email" name="email" type="email" value="{{.email}}" required>
</div>
<div class="ui message flash-info"><p>Please note that we block certain throwaway email providers since we want to make sure we reach you.</p></div>
{{if not .DisablePassword}}
<div class="required inline field {{if and (.Err_Password) (or (not .LinkAccountMode) (and .LinkAccountMode .LinkAccountModeRegister))}}error{{end}}">
<label for="password">{{.locale.Tr "password"}}</label>
@ -43,6 +45,7 @@
<label for="captcha">{{.locale.Tr "captcha"}}</label>
<input id="captcha" name="captcha" value="{{.captcha}}" autocomplete="off">
</div>
<div class="ui message flash-info"><p>If you have justified difficulties solving the captcha, please contact us at <a href="mailto:contact@codeberg.org">contact@codeberg.org</a> and let us know your prefered account name.</p></div>
{{end}}
{{if and .EnableCaptcha (eq .CaptchaType "recaptcha")}}
<div class="inline field required">