page_register

package
v0.33.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2026 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterPasswordlessContent

func RegisterPasswordlessContent(urlLogin string) string

RegisterPasswordlessContent builds the HTML for the passwordless registration page.

func RegisterPasswordlessScripts

func RegisterPasswordlessScripts(urlApiRegister, urlOnSuccess string) string

RegisterPasswordlessScripts builds the JS for the passwordless registration page.

func RegisterUsernameAndPasswordContent

func RegisterUsernameAndPasswordContent(urlLogin, urlPasswordRestore string) string

RegisterUsernameAndPasswordContent builds the HTML for the username/password registration page.

func RegisterUsernameAndPasswordScripts

func RegisterUsernameAndPasswordScripts(urlApiRegister, urlOnSuccess string) string

RegisterUsernameAndPasswordScripts builds the JS for the username/password registration page.

Types

type Dependencies

type Dependencies struct {
	Passwordless       bool
	EnableVerification bool

	Endpoint string

	Layout func(content string) string

	Logger *slog.Logger
}

Dependencies contains the dependencies required to render the register page.

Jump to

Keyboard shortcuts

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