add hidden input with captcha id in form

This commit is contained in:
Yanislav Igonin 2021-10-04 11:44:02 +03:00
parent b2fdb89d49
commit 096948bcaa

View File

@ -76,6 +76,7 @@
{{ end }}
<textarea class="form-control" id="postText" rows="5" placeholder="Text" name="text"></textarea>
<input class="form-control" type="file" id="postFiles" multiple name="files">
<input class="form-control" type="hidden" id="postCaptcha" name="captchaId" value="{{ .CaptchaID }}">
<img src="/captcha/{{ .CaptchaID }}" alt="Captcha">