MCPcopy
hub / github.com/apache/answer / coordinatedCaptchaPlugins

Function coordinatedCaptchaPlugins

plugin/captcha.go:67–82  ·  view source on GitHub ↗
(slugName string)

Source from the content-addressed store, hash-verified

65}
66
67func coordinatedCaptchaPlugins(slugName string) (enabledSlugNames []string) {
68 isCaptcha := false
69 _ = callCaptcha(func(captcha Captcha) error {
70 name := captcha.Info().SlugName
71 if slugName == name {
72 isCaptcha = true
73 } else {
74 enabledSlugNames = append(enabledSlugNames, name)
75 }
76 return nil
77 })
78 if isCaptcha {
79 return enabledSlugNames
80 }
81 return nil
82}

Callers 1

EnableMethod · 0.85

Calls 1

InfoMethod · 0.65

Tested by

no test coverage detected