account

package
v0.0.0-...-7c54a7e Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckPasswordHash

func CheckPasswordHash(password, hash string) bool

CheckPasswordHash compare password with hash

func CreateAccount

func CreateAccount(c *fiber.Ctx) error

CreateAccount new user

func DeleteAccount

func DeleteAccount(c *fiber.Ctx) error

DeleteAccount delete user

func GetAccount

func GetAccount(c *fiber.Ctx) error

GetAccount get a user

func GetJWTToken

func GetJWTToken(c *fiber.Ctx) error

func IsLoggedIn

func IsLoggedIn(c *fiber.Ctx) error

func Login

func Login(c *fiber.Ctx) error

Login get user and password

func Logout

func Logout(c *fiber.Ctx) error

func RenderSignInHandler

func RenderSignInHandler(c *fiber.Ctx) error

func RenderWelcomeHandler

func RenderWelcomeHandler(c *fiber.Ctx) error

func SignUpHandler

func SignUpHandler(c *fiber.Ctx) error

func UpdateAccount

func UpdateAccount(c *fiber.Ctx) error

UpdateAccount update user

Types

This section is empty.

Jump to

Keyboard shortcuts

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