gitea: also allow words that contain "clan" as captcha

This commit is contained in:
Jörg Thalheim 2024-04-30 13:14:21 +02:00
parent 7f420ed88c
commit 33dd7b5e9f

View File

@ -21,7 +21,7 @@ index 007e790b8..a8f3ba7dc 100644
ctx.Data["PageIsSignUp"] = true
+ if strings.ToLower(form.Notabot) != "clan" {
+ if strings.Contains(strings.ToLower(form.Notabot), "clan") {
+ ctx.Error(http.StatusForbidden)
+ return
+ }