Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
张磊
/
FileStorageBeego
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
469f283b
authored
2014-06-19 20:29:36 +0800
by
astaxie
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
beego:fix captcha filter router
1 parent
085c362f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
utils/captcha/captcha.go
utils/captcha/captcha.go
View file @
469f283
...
...
@@ -248,7 +248,7 @@ func NewWithFilter(urlPrefix string, store cache.Cache) *Captcha {
cpt
:=
NewCaptcha
(
urlPrefix
,
store
)
// create filter for serve captcha image
beego
.
InsertFilter
(
cpt
.
URLPrefix
+
"
:
"
,
beego
.
BeforeRouter
,
cpt
.
Handler
)
beego
.
InsertFilter
(
cpt
.
URLPrefix
+
"
*
"
,
beego
.
BeforeRouter
,
cpt
.
Handler
)
// add to template func map
beego
.
AddFuncMap
(
"create_captcha"
,
cpt
.
CreateCaptchaHtml
)
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment