Documentation ¶
Index ¶
Constants ¶
View Source
const (
// Pepper for user authentication
Pepper = `AAUIAbhABJb*&!^^@$%^6756nVBZZVBvnGHVAjhM<PE($#^$&())NnwpiwnOW?"|">?UwoUWBK`
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Basic ¶
Basic defines basic user attributes
func GetByEmail ¶
func GetByEmail(ctx *authcontext.Context, email string) (*Basic, error)
GetByEmail an user based on its Email
type Full ¶
type Full struct { Name string `json:"name" binding:"required"` Email string `json:"email" binding:"required"` Password string `json:"password"` Role int `json:"role"` CreationTime int64 `json:"creationTime"` UpdateTime int64 `json:"updateTime"` }
Full defines full user attributes
func GetFullByEmail ¶
func GetFullByEmail(ctx *authcontext.Context, email string) (*Full, error)
GetFullByEmail full User info based on its email
Click to show internal directories.
Click to hide internal directories.