page_password_reset

package
v0.32.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PagePasswordReset

func PagePasswordReset(w http.ResponseWriter, r *http.Request, a types.AuthSharedInterface)

PagePasswordReset renders the password reset page using the provided auth instance and computes the user-facing message internally.

func PasswordResetContent

func PasswordResetContent(token, errorMessage, urlPasswordRestore, urlLogin, urlRegister string, enableRegistration bool) string

PasswordResetContent builds the HTML for the password reset page.

func PasswordResetScripts

func PasswordResetScripts(urlApiPasswordReset, urlOnSuccess string) string

PasswordResetScripts builds the JS for the password reset page.

Types

type Dependencies

type Dependencies struct {
	Endpoint           string
	EnableRegistration bool
	Token              string
	ErrorMessage       string

	Layout func(content string) string

	Logger *slog.Logger
}

Dependencies contains the dependencies required to render the password reset page.

Jump to

Keyboard shortcuts

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