Added CAPTCHA on a form.

This commit is contained in:
Alexander Andreev 2022-06-25 03:26:41 +04:00
parent 41bd79a779
commit 6c45d2661e
Signed by: Arav
GPG Key ID: 0388CC8FAA51063F
1 changed files with 5 additions and 2 deletions

View File

@ -30,9 +30,12 @@ block content
span.checkbox
input(type='checkbox' id='hide-website' name='hide_website' checked)
label(for='hide-website') Hide website*
span.captcha
input(type='hidden', name='captcha_id' value=captcha_id)
img(src='/captcha/'+captcha_id+'/image', alt="CAPTCHA" width='160' height='40')
input(type='text' maxlength='6' placeholder='CAPTCHA' name='captcha_answer')
small Will be valid for next #[b 5] minutes.
small *Only I can see if set.
br
small NO links are allowed in a message.
input(type='submit' value='Send a post')
section#posts
if (posts)