844a0734dd
Since the captcha uses the default tab order it was getting skipped by the registration form. - Add autofocus to the registration and upload view - Add id attribute to input elements that have a label
11 lignes
435 o
HTML
11 lignes
435 o
HTML
{{define "captcha"}}
|
|
{{/* unset if user doesn't need captcha */}}
|
|
{{if ne .CaptchaID ""}}
|
|
<div class="form-group captcha-container">
|
|
<label for="solution">Captcha</label>
|
|
<input type="text" name="captchaID" value="{{.CaptchaID}}" hidden>
|
|
<img src="/captcha/{{.CaptchaID}}.png">
|
|
<input type="text" name="solution" id="solution" class="form-control" placeholder="Captcha" autocomplete="off" required>
|
|
</div>
|
|
{{end}}
|
|
{{end}}
|