ui

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2025 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Account added in v0.4.0

func Account(config models.Config, opener handlers.Opener) http.HandlerFunc

func Auth added in v0.4.0

func Auth(args AuthArguments) horror.HandlerFunc

Auth authentiates user with given nickanem and password as JSOn document in the payload.

func AuthWithCodes added in v0.4.0

func AuthWithCodes(args AuthWithCodesArguments) horror.HandlerFunc

AuthWithCodes authenticates given user with one time passwords.

func Devices

func Devices(config models.Config, opener handlers.Opener) http.HandlerFunc

func Home

func Home(config models.Config, opener handlers.Opener) http.HandlerFunc

func LoginPage

func LoginPage(config models.Config, opener handlers.Opener) http.HandlerFunc

func Logout

func Logout(killer session.Killer) http.HandlerFunc

func Register

func Register(config models.Config, opener handlers.Opener) http.HandlerFunc

func TwoFactor added in v0.4.0

func TwoFactor(config models.Config, opener handlers.Opener) http.HandlerFunc

Types

type AuthArguments added in v0.4.0

type AuthArguments struct {
	Saver                session.Saver
	Users                storage.Users
	TwoFactor            storage.TwoFactor
	TwoFactorRedirectURI string
}

AuthArguments holds dependencies for Auth handler.

type AuthWithCodesArguments added in v0.4.0

type AuthWithCodesArguments struct {
	Renewer   session.Renewer
	Saver     session.Saver
	TwoFactor storage.TwoFactor
}

AuthWithCodesArguments holds dependencies for AuthWichCodes handler.

Jump to

Keyboard shortcuts

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