login

package
v0.8.5 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: LGPL-3.0 Imports: 17 Imported by: 0

README

What does this directory DO?

This package provides the endpoints for the login web UI and the login HTTP API.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoginHandler

type LoginHandler struct {
	HIBP hibp.HIBPSettings
	// Set this to be longer than your session
	// duration. Session durations do not
	// change the last login date, which is
	// used for comparison.
	// It is set for every new session made,
	// so once refresh is enabled, it will
	// update the last login once refreshed.
	LockInactivityAfter map[string]time.Duration
}

func (LoginHandler) ServeHTTP

func (lh LoginHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type LoginPageHandler added in v0.1.1

type LoginPageHandler struct {
	AppName string
	// Only allow users with an invite code to register
	DisablePublicRegistration bool
	Styling                   pages.LocksmithPageStyling
	EmailAsUsername           bool
	OnboardingPath            string
}

func (LoginPageHandler) ServeHTTP added in v0.1.1

func (lr LoginPageHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type LoginPageMiddleware added in v0.7.0

type LoginPageMiddleware struct {
	Next http.Handler
}

This confirms that: - A Session ID exists, and if not generates one - A Login_XSRF is created to work with LoginHandler{}

func (LoginPageMiddleware) ServeHTTP added in v0.7.0

func (h LoginPageMiddleware) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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