page_login

package
v0.34.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 LoginContent

func LoginContent(enableRegistration bool, urlRegister, urlPasswordRestore string) string

LoginContent builds the HTML content for the standard login page.

func LoginPasswordlessContent

func LoginPasswordlessContent(enableRegistration bool, urlRegister string) string

LoginPasswordlessContent builds the HTML content for the passwordless login page.

func LoginPasswordlessScripts

func LoginPasswordlessScripts(urlApiLogin, urlSuccess string) string

LoginPasswordlessScripts builds the JavaScript for the passwordless login page.

func LoginScripts

func LoginScripts(urlApiLogin, urlOnSuccess string) string

LoginScripts builds the JavaScript for the standard login page.

Types

type Dependencies

type Dependencies struct {
	Passwordless       bool
	EnableRegistration bool

	Endpoint          string
	RedirectOnSuccess string

	// Layout is the outer layout function supplied by the auth package.
	Layout func(content string) string

	Logger *slog.Logger
}

Dependencies contains the dependencies required to render the login page.

Jump to

Keyboard shortcuts

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