MCPcopy Create free account
hub / github.com/GoEdgeLab/EdgeNode / showImage

Method showImage

internal/waf/captcha_validator.go:193–204  ·  view source on GitHub ↗
(actionConfig *CaptchaAction, req requests.Request, writer http.ResponseWriter, captchaType firewallconfigs.ServerCaptchaType)

Source from the content-addressed store, hash-verified

191}
192
193func (this *CaptchaValidator) showImage(actionConfig *CaptchaAction, req requests.Request, writer http.ResponseWriter, captchaType firewallconfigs.ServerCaptchaType) {
194 switch captchaType {
195 case firewallconfigs.CaptchaTypeOneClick:
196 // stub
197 case firewallconfigs.CaptchaTypeSlide:
198 // stub
199 case firewallconfigs.CaptchaTypeGeeTest:
200 // stub
201 default:
202 this.showVerifyImage(actionConfig, req, writer)
203 }
204}
205
206func (this *CaptchaValidator) showVerifyCodesForm(actionConfig *CaptchaAction, req requests.Request, writer http.ResponseWriter) {
207 // show captcha

Callers 1

RunMethod · 0.95

Calls 1

showVerifyImageMethod · 0.95

Tested by

no test coverage detected