user

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2024 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LDAP  = "LDAP"
	LOCAL = "LOCAL"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Authenticate

type Authenticate struct {
	Password string `json:"password"`
	Token    string `json:"token"`
}

type ImportResult added in v1.5.3

type ImportResult struct {
	Success  bool     `json:"success"`
	Failures []string `json:"failures"`
	Msg      string   `json:"msg"`
}

type ImportUser added in v1.5.3

type ImportUser struct {
	Name      string `json:"name"`
	Email     string `json:"email"`
	NickName  string `json:"nickName"`
	Available bool   `json:"available"`
}

type Mfa added in v1.5.0

type Mfa struct {
	Enable bool   `json:"enable"`
	Secret string `json:"secret"`
}

type User

type User struct {
	v1.BaseModel `storm:"inline"`
	v1.Metadata  `storm:"inline"`
	NickName     string       `json:"nickName" storm:"index"`
	Email        string       `json:"email" storm:"unique"`
	Language     string       `json:"language"`
	IsAdmin      bool         `json:"isAdmin"`
	Authenticate Authenticate `json:"authenticate"`
	Type         string       `json:"type"`
	Mfa          Mfa          `json:"mfa"`
}

Jump to

Keyboard shortcuts

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