profile

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2026 License: LGPL-3.0 Imports: 25 Imported by: 0

Documentation

Overview

Package profile holds the demo example for an authenticated self-service area backed by the given GORM stores: cookie-session password login with an optional TOTP second factor and recovery codes, plus password, email, and two-factor management.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(log *slog.Logger, users *user.Service, pw *password.Service, sessions *session.Service, patStore *patdb.Store, mfaSvc mfa.Services, rnd *web.Renderer) http.Handler

New demonstrates an authenticated self-service area backed by the given GORM stores: cookie-session password login with an optional TOTP second factor and recovery codes, plus password, email, and two-factor management.

func Section

func Section(log *slog.Logger, users *user.Service, pw *password.Service, sessions *session.Service, pats *patdb.Store, mfaSvc mfa.Services, rnd *web.Renderer) examples.Section

Section describes the profile self-service example for the demo index and mounts it on the router. Self-service needs the identity and password services, the session registry (list/revoke from the profile page), and the PAT store its token service runs on.

Types

This section is empty.

Jump to

Keyboard shortcuts

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