From c1f632ee0342291546a4fc2a4b5d0f79c6235891 Mon Sep 17 00:00:00 2001 From: Yanislav Igonin <yanislavdabest@gmail.com> Date: Mon, 25 Oct 2021 10:47:21 +0300 Subject: [PATCH] feat: only numbers in captcha field on mobile --- templates/post-form.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/post-form.html b/templates/post-form.html index c4ae8de..b40e232 100644 --- a/templates/post-form.html +++ b/templates/post-form.html @@ -19,7 +19,7 @@ <img src="/captcha/{{ .CaptchaID }}" alt="Captcha"> </div> <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"> {{ if ne .FirstPostID 0 }}