user

package
v0.0.0-...-7acb1c3 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2024 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckSessionid

func CheckSessionid(username string, id string, config conf.Conf) bool

func GetUser

func GetUser(username string, sessionid string, config conf.Conf) (map[string]any, error)

func ValidateCredentials

func ValidateCredentials(username string, password string, config conf.Conf) (string, error)

Types

type User

type User struct {
	Username string `mapstructure:"username"`
	Password string `mapstructure:"password"`
	Name     string `mapstructure:"name"`
	Status   string `mapstructure:"status"`
	Picture  string `mapstructure:"picture"`
}

func (*User) FromRow

func (u *User) FromRow(row map[string]any) error

func (*User) ToRow

func (u *User) ToRow() map[string]any

Jump to

Keyboard shortcuts

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