Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FormsAuth ¶
type FormsAuth struct { // The path where the login form is served. LoginRoute string `json:"loginRoute"` // Directory where session files are stored. SessionsDir string `json:"sessionsDir"` // The algorithm with which the passwords are hashed. Default: bcrypt HashRaw json.RawMessage `json:"hash,omitempty" caddy:"namespace=http.authentication.hashes inline_key=algorithm"` // The list of accounts to authenticate. Accounts map[string]string `json:"accounts,omitempty"` // contains filtered or unexported fields }
FormsAuth is the model for a formsauth directive.
func (*FormsAuth) CaddyModule ¶
func (*FormsAuth) CaddyModule() caddy.ModuleInfo
type LoginContext ¶
LoginContext is the view-model for the login form template.
Click to show internal directories.
Click to hide internal directories.