utils

package
v0.0.0-...-8bbae97 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2020 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckPasswordHash

func CheckPasswordHash(password, hash string) bool

func GetUserByEmail

func GetUserByEmail(e string) (*model.User, error)

func GetUserByUsername

func GetUserByUsername(u string) (*model.User, error)

func HashPassword

func HashPassword(password string) (string, error)

func ValidToken

func ValidToken(t *jwt.Token, id string) bool

func ValidUser

func ValidUser(id string, p string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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