Skip to content
This repository has been archived by the owner on Feb 24, 2024. It is now read-only.

Commit

Permalink
fixed lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
markbates committed Apr 16, 2017
1 parent daca467 commit a36274b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions middleware/csrf/csrf.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ var (
// ErrBadReferer is returned when the scheme & host in the URL do not match
// the supplied Referer header.
ErrBadReferer = errors.New("referer invalid")
// ErrNoCSRFToken is returned if no CSRF token is supplied in the request.
// ErrNoToken is returned if no CSRF token is supplied in the request.
ErrNoToken = errors.New("CSRF token not found in request")
// ErrBadCSRFToken is returned if the CSRF token in the request does not match
// ErrBadToken is returned if the CSRF token in the request does not match
// the token in the session, or is otherwise malformed.
ErrBadToken = errors.New("CSRF token invalid")
)

// CSRF enable CSRF protection on routes using this middleware.
// Middleware enable CSRF protection on routes using this middleware.
// This middleware is adapted from gorilla/csrf
var Middleware = func(next buffalo.Handler) buffalo.Handler {
return func(c buffalo.Context) error {
Expand Down

0 comments on commit a36274b

Please sign in to comment.