469f283b by astaxie

beego:fix captcha filter router

1 parent 085c362f
...@@ -248,7 +248,7 @@ func NewWithFilter(urlPrefix string, store cache.Cache) *Captcha { ...@@ -248,7 +248,7 @@ func NewWithFilter(urlPrefix string, store cache.Cache) *Captcha {
248 cpt := NewCaptcha(urlPrefix, store) 248 cpt := NewCaptcha(urlPrefix, store)
249 249
250 // create filter for serve captcha image 250 // create filter for serve captcha image
251 beego.InsertFilter(cpt.URLPrefix+":", beego.BeforeRouter, cpt.Handler) 251 beego.InsertFilter(cpt.URLPrefix+"*", beego.BeforeRouter, cpt.Handler)
252 252
253 // add to template func map 253 // add to template func map
254 beego.AddFuncMap("create_captcha", cpt.CreateCaptchaHtml) 254 beego.AddFuncMap("create_captcha", cpt.CreateCaptchaHtml)
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!