From d3202064a235a9f78daa8ce93e4161707646e975 Mon Sep 17 00:00:00 2001 From: Yanislav Igonin Date: Fri, 28 Jan 2022 01:49:09 +0200 Subject: [PATCH] feat: captcha component --- templates/captcha.html | 7 +++++++ templates/post-form.html | 6 +----- 2 files changed, 8 insertions(+), 5 deletions(-) create mode 100644 templates/captcha.html diff --git a/templates/captcha.html b/templates/captcha.html new file mode 100644 index 0000000..355c860 --- /dev/null +++ b/templates/captcha.html @@ -0,0 +1,7 @@ +{{ define "captcha" }} +
+ Captcha +
+ + +{{ end }} \ No newline at end of file diff --git a/templates/post-form.html b/templates/post-form.html index 8c7bea9..b12cf18 100644 --- a/templates/post-form.html +++ b/templates/post-form.html @@ -16,11 +16,7 @@ {{ if .IsCaptchaActive }} -
- Captcha -
- - + {{ template "captcha" .CaptchaID}} {{ end }}