dkforest

A forum and chat platform (onion)
git clone https://git.dasho.dev/n0tr1v/dkforest.git
Log | Files | Refs | LICENSE

commit 7dde9e8a1ab3da763b55b7f280b645ee12e120c5
parent a831a9f7ba853ec18ccf93f7fc95755b99cee978
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Sat, 25 Mar 2023 13:20:19 -0700

fix template

Diffstat:
Mpkg/web/handlers/handlers.go | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/pkg/web/handlers/handlers.go b/pkg/web/handlers/handlers.go @@ -3880,6 +3880,9 @@ func CaptchaHandler(c echo.Context) error { } setCaptcha := func(seed int64) { data.CaptchaID, data.Answer, data.CaptchaImg, data.CaptchaAnswerImg = captcha.NewWithSolution(seed) + if !data.ShowAnswer { + data.CaptchaAnswerImg = "" + } } data.Seed = time.Now().UnixNano() data.Ts = time.Now().UnixMilli()