user

package
v0.0.0-...-a03da9d Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2021 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Login validation.RuleSet = validation.RuleSet{
		"email":    {"required", "string"},
		"password": {"required", "string"},
	}
)
View Source
var (
	Register validation.RuleSet = validation.RuleSet{
		"email":      {"required", "string"},
		"password":   {"required", "string"},
		"first_name": {"required", "string"},
		"last_name":  {"required", "string"},
	}
)

Functions

func Destroy

func Destroy(response *goyave.Response, request *goyave.Request)

Destroy a user

func GenerateRandomBytes

func GenerateRandomBytes(n int) ([]byte, error)

GenerateRandomBytes returns securely generated random bytes. It will return an error if the system's secure random number generator fails to function correctly, in which case the caller should not continue.

func GenerateRandomString

func GenerateRandomString(n int) (string, error)

GenerateRandomString returns a securely generated random string. It will return an error if the system's secure random number generator fails to function correctly, in which case the caller should not continue.

func LoginAuth

func LoginAuth(username, password string) smtp.Auth

func SendEmail

func SendEmail(address string, subject string, body string)

func Show

func Show(response *goyave.Response, request *goyave.Request)

Show a user

func Store

func Store(response *goyave.Response, request *goyave.Request)

Store a user

func Update

func Update(response *goyave.Response, request *goyave.Request)

Update a user

func Verify

func Verify(response *goyave.Response, request *goyave.Request)

Email verification for a user

Types

This section is empty.

Jump to

Keyboard shortcuts

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