access

package
v0.0.0-...-43a8b31 Latest Latest
Warning

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

Go to latest
Published: May 10, 2023 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Login

func Login(u LoginCredential) (user.UserObj, bool)

func SendPasswordResetEmail

func SendPasswordResetEmail(emailAddress string) bool

func TriggerResetPassword

func TriggerResetPassword(rp ResetPassword) bool

Types

type Auth

type Auth struct {
	ID        int    `json:"id"`
	Username  string `json:"username"`
	Confirmed bool   `json:"confirmed"`
}

Auth -

func GetAuth

func GetAuth(uid int) Auth

type Auths

type Auths []Auth

Auths - An array of Auth

type LoginCredential

type LoginCredential struct {
	Email    string `json:"email"`
	Password string `json:"password"`
}

LoginCredential - Login credential

type LoginCredentials

type LoginCredentials []LoginCredential

LoginCredentials - An array of LoginCredential

type ResetPassword

type ResetPassword struct {
	Email    string `json:"email"`
	Code     string `json:"code"`
	Password string `json:"password"`
}

ResetPassword -

type ResetPasswords

type ResetPasswords []ResetPassword

ResetPasswords - An array of ResetPassword

Jump to

Keyboard shortcuts

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