Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AgeGate ¶
func AgeGate(verifyHandler func(http.ResponseWriter, *http.Request)) negroni.HandlerFunc
AgeGate is a middleware generator that does age verification for NSFW sites.
func CSRF ¶
func CSRF(onError func(http.ResponseWriter, *http.Request, string)) negroni.HandlerFunc
CSRF is a middleware generator that enforces CSRF tokens on all POST requests.
func GenerateCSRFToken ¶
GenerateCSRFToken generates a CSRF token for the user and puts it in their session.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.