feat: only numbers in captcha field on mobile

This commit is contained in:
Yanislav Igonin 2021-10-25 10:47:21 +03:00
parent dafdd198e1
commit c1f632ee03

View File

@ -19,7 +19,7 @@
<img src="/captcha/{{ .CaptchaID }}" alt="Captcha"> <img src="/captcha/{{ .CaptchaID }}" alt="Captcha">
</div> </div>
<input class="form-control" type="hidden" name="captchaId" value="{{ .CaptchaID }}"> <input class="form-control" type="hidden" name="captchaId" value="{{ .CaptchaID }}">
<input class="form-control" id="postCaptcha" placeholder="Captcha" name="captcha"> <input class="form-control" id="postCaptcha" type="tel" pattern="\d+" placeholder="Captcha" name="captcha">
<div class="row"> <div class="row">
{{ if ne .FirstPostID 0 }} {{ if ne .FirstPostID 0 }}