users

package
v0.18.7 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package users handles user-related custom functionality.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserManager

type UserManager struct {
	// contains filtered or unexported fields
}

func NewUserManager

func NewUserManager(app core.App) *UserManager

func (*UserManager) CreateFirstUser

func (um *UserManager) CreateFirstUser(e *core.RequestEvent) error

Custom API endpoint to create the first user. Mimics previous default behavior in PocketBase < 0.23.0 allowing user to be created through the Beszel UI.

func (*UserManager) InitializeUserRole

func (um *UserManager) InitializeUserRole(e *core.RecordEvent) error

Initialize user role if not set

func (*UserManager) InitializeUserSettings

func (um *UserManager) InitializeUserSettings(e *core.RecordEvent) error

Initialize user settings with defaults if not set

Jump to

Keyboard shortcuts

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