gitea: also allow words that contain "clan" as captcha
This commit is contained in:
parent
9114246d56
commit
20d9e85342
|
@ -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