account

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2026 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Overview

templ: version: v0.3.1001

Package account owns everything scoped to the signed-in person: their profile, their password, their API keys and their notification preferences.

These used to be scattered, API keys sat on the global settings page beside instance-wide infrastructure config, and there was no way at all to change a password. Splitting them out is what lets the settings gear become admin-only without stranding ordinary users.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CanGrantWrite

func CanGrantWrite(c echo.Context) bool

CanGrantWrite reports whether the current user may mint write-scoped API keys. Exported so the CLI authorize page applies the identical rule.

func NewHandler

func NewHandler(store repo.Store, auth *service.AuthService, files storage.FileStorage) *handler

NewHandler creates a new account handler.

Types

This section is empty.

Jump to

Keyboard shortcuts

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