users

package
v0.0.0-...-cdbd8f0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateUser

func CreateUser(env *models.Env, user User) error

Types

type User

type User struct {
	ID             uint64
	Username       string
	HashedPassword string
	Salt           string
	Email          string
	Verified       bool
	RoleID         uint64
	CreatedAt      time.Time
	LastLogin      time.Time
}

func GetUserByUsername

func GetUserByUsername(env *models.Env, username string) (User, error)

Jump to

Keyboard shortcuts

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