users

package
v0.0.0-...-69c30cd Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2022 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChangePwd

func ChangePwd(c *gin.Context)

func ChangeUserFname

func ChangeUserFname(c *gin.Context)

func ChangeUserLname

func ChangeUserLname(c *gin.Context)

func CheckOldPwd

func CheckOldPwd(c *gin.Context)

func DeleteUser

func DeleteUser(c *gin.Context)

func ExtractIdFromToken

func ExtractIdFromToken(c *gin.Context) (uuid.UUID, error)

func ExtractToken

func ExtractToken(c *gin.Context) string

func GetUser

func GetUser(c *gin.Context)

func GetUserFromId

func GetUserFromId(c *gin.Context)

func LoginUser

func LoginUser(c *gin.Context)

func RegisterUser

func RegisterUser(c *gin.Context)

func TokenValid

func TokenValid(c *gin.Context) error

Types

type BasicUser

type BasicUser struct {
	Email string `json:"email"`
	Fname string `json:"fname"`
	Lname string `json:"lname"`
	Alert int    `json:"alert"`
}

type User

type User struct {
	User_id  uuid.UUID `json:"user_id"`
	Fname    string    `json:"fname"`
	Lname    string    `json:"lname"`
	Email    string    `json:"email"`
	Password string    `json:"password"`
	Alert    int       `json:"alert"`
}

type UserDetails

type UserDetails struct {
	User_id uuid.UUID `json:"user_id"`
	Fname   string    `json:"fname"`
	Lname   string    `json:"lname"`
}

type UserLogin

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

type UserPwd

type UserPwd struct {
	User_id  uuid.UUID `json:"user_id"`
	Password string    `json:"password"`
}

Jump to

Keyboard shortcuts

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