utils

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2022 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompPasswordAndHash

func CompPasswordAndHash(user model.User, password string) (err error)

Check for correct password

func GenerateBCryptFromPassword

func GenerateBCryptFromPassword(user *model.User) (err error)

Create a BCrypt Password, to store passwords in the database

func ParseStringToUint

func ParseStringToUint(toParse string) (uint, error)

Parse string to uint (for user-id stuff)

func ParseUintToString

func ParseUintToString(toParse uint) string

func SendWelcomeMail added in v1.0.2

func SendWelcomeMail(to string, username string, code string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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