summaryrefslogtreecommitdiff
path: root/api/hcaptcha/hcaptcha.go
diff options
context:
space:
mode:
authorElizabeth <elizabeth@simponic.xyz>2024-04-09 18:39:14 -0400
committersimponic <simponic@hatecomputers.club>2024-04-09 18:39:14 -0400
commit1d75bf7489527925217bd5611ba7910c0ffe077c (patch)
tree3b6e6056912648a88e1e42c1e42ed7e58e2d4701 /api/hcaptcha/hcaptcha.go
parentee49015cc90e6c136ad94243fffc9241b9506a36 (diff)
downloadhatecomputers.club-1d75bf7489527925217bd5611ba7910c0ffe077c.tar.gz
hatecomputers.club-1d75bf7489527925217bd5611ba7910c0ffe077c.zip
profiles (#7)
Reviewed-on: https://git.hatecomputers.club/hatecomputers/hatecomputers.club/pulls/7 Co-authored-by: Elizabeth <elizabeth@simponic.xyz> Co-committed-by: Elizabeth <elizabeth@simponic.xyz>
Diffstat (limited to 'api/hcaptcha/hcaptcha.go')
-rw-r--r--api/hcaptcha/hcaptcha.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/api/hcaptcha/hcaptcha.go b/api/hcaptcha/hcaptcha.go
index 007190d..e8ea238 100644
--- a/api/hcaptcha/hcaptcha.go
+++ b/api/hcaptcha/hcaptcha.go
@@ -62,8 +62,8 @@ func CaptchaVerificationContinuation(context *types.RequestContext, req *http.Re
err := verifyCaptcha(secretKey, hCaptchaResponse)
if err != nil {
- (*context.TemplateData)["FormError"] = types.FormError{
- Errors: []string{"hCaptcha verification failed"},
+ (*context.TemplateData)["Error"] = types.BannerMessages{
+ Messages: []string{"hCaptcha verification failed"},
}
resp.WriteHeader(http.StatusBadRequest)