utils

package
v0.0.0-...-ef41214 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckPassword

func CheckPassword(normal, hashed string) bool

CheckPassword check password

func CreateRandomString

func CreateRandomString(length int) string

CreateRandomString With Length

func GetConfig

func GetConfig() *models.Config

func GetDB

func GetDB() *gorm.DB

func GetJwtToken

func GetJwtToken(id uint) (string, error)

func HashAndSalt

func HashAndSalt(origin string) string

HashAndSalt password

func SendResetPasswordMail

func SendResetPasswordMail(code, reciver string) error

func SendVefiryMail

func SendVefiryMail(verifyCode, reciver string) error

func SetConfig

func SetConfig(config *models.Config)

func SetDB

func SetDB(db *gorm.DB)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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