Documentation
¶
Index ¶
Constants ¶
View Source
const (
AnonymousReceipt = "an"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CSRF ¶
type CSRF struct {
// contains filtered or unexported fields
}
func (*CSRF) ClearToken ¶
func (c *CSRF) ClearToken(w http.ResponseWriter, r *http.Request)
ClearToken clears the token from the user session. This should only be called after a successful POST or when a page is requested
func (*CSRF) CreateToken ¶
func (c *CSRF) CreateToken(w http.ResponseWriter, r *http.Request)
CreateToken creates and stores a new CSRF token. It also writes the token to the client's session.
Click to show internal directories.
Click to hide internal directories.