user

package
v0.0.0-...-f0de569 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChangePassword

func ChangePassword(c *gin.Context)

func CheckPasswordHash

func CheckPasswordHash(password, hash string) bool

func CreateUser

func CreateUser(c *gin.Context)

func DeleteUser

func DeleteUser(c *gin.Context)

func GetToken

func GetToken(c *gin.Context)

func GetUser

func GetUser(c *gin.Context)

func GetUserAuthMode

func GetUserAuthMode(c *gin.Context)

func GetUserByToken

func GetUserByToken(c *gin.Context)

func GetUserLookup

func GetUserLookup(c *gin.Context)

func HashPassword

func HashPassword(password string) (string, error)

func ListUser

func ListUser(c *gin.Context)

func Login

func Login(c *gin.Context)

func Logout

func Logout(c *gin.Context)

func UpdateUser

func UpdateUser(c *gin.Context)

Types

type LoginPost

type LoginPost struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

Jump to

Keyboard shortcuts

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