forked from clan/clan-infra
gitea: also allow words that contain "clan" as captcha
This commit is contained in:
parent
7f420ed88c
commit
33dd7b5e9f
@ -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
|
||||
+ }
|
||||
|
Loading…
Reference in New Issue
Block a user