register

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: 19 Imported by: 0

README

What does this directory DO?

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RegisterCustomUserFunc added in v0.3.0

type RegistrationHandler

type RegistrationHandler struct {
	DefaultRoleName           string
	DisablePublicRegistration bool
	ConfigureCustomUser       RegisterCustomUserFunc
	EmailAsUsername           bool
	MinimumLengthRequirement  int
	HIBP                      hibp.HIBPSettings
	NewRegistrationEvent      func(users.LocksmithUserInterface)
}

func (RegistrationHandler) ServeHTTP

func (rr RegistrationHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type RegistrationPageHandler

type RegistrationPageHandler struct {
	AppName string
	// Only allow users with an invite code to register
	DisablePublicRegistration bool
	Styling                   pages.LocksmithPageStyling
	EmailAsUsername           bool
	HasOnboarding             bool
	InviteUsedRedirect        string
	HIBPIntegrationOptions    hibp.HIBPSettings
	MinimumLengthRequirement  int
}

func (RegistrationPageHandler) ServeHTTP

Jump to

Keyboard shortcuts

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