Skip to content

Commit

Permalink
add XSRFName
Browse files Browse the repository at this point in the history
  • Loading branch information
dworld committed Nov 10, 2014
1 parent 1437e2f commit 02a4290
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions context_xsrf.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ func (ctx *Context) checkXSRF() {
}
}

func (ctx *Context) XSRFName() string {
ctx.checkXSRF()
return ctx.xsrf.GetFormName()
}

func (ctx *Context) XSRFToken() string {
ctx.checkXSRF()
if ctx.xsrf == nil {
Expand Down

0 comments on commit 02a4290

Please sign in to comment.