Refactor server and templates package
This commit is contained in:
parent
b6bf0a8900
commit
6ede99d7c6
105 changed files with 341 additions and 339 deletions
14
internal/dis/component/server/cookies.go
Normal file
14
internal/dis/component/server/cookies.go
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
package server
|
||||
|
||||
// CSRFCookie, CSRFCookieField, SessionCookie and SessionUserKey
|
||||
// hold the names of the cookies and fields used for specific cookies.
|
||||
//
|
||||
// These are intentionally kept short to conserve bandwidth.
|
||||
const (
|
||||
CSRFCookie = "F" // CSRF cookie sent on a lot of requests
|
||||
CSRFCookieField = "@" // form field name __should not be used by anything else__
|
||||
// to pay respect
|
||||
|
||||
SessionCookie = "x" // name of the cookie to use ; to doubt
|
||||
SessionUserKey = "@" // key within the session data to hold the username
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue