password

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 9, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

Handler handles password authentication

func NewHandler

func NewHandler(cfg config.PasswordAuthConfig, sessionStore kvs.Store, cookieConfig config.CookieConfig, authPathPrefix string, translator *i18n.Translator, logger logging.Logger) *Handler

NewHandler creates a new password authentication handler

func (*Handler) HandleLogin

func (h *Handler) HandleLogin(w http.ResponseWriter, r *http.Request)

HandleLogin handles the password login

func (*Handler) RenderPasswordForm

func (h *Handler) RenderPasswordForm(lang i18n.Language) string

RenderPasswordForm renders the password form HTML

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL