userRepository

package
v0.0.0-...-09f00c6 Latest Latest
Warning

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

Go to latest
Published: May 20, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetUserIdByUsername

func GetUserIdByUsername(username string) (string, error)

func HashPassword

func HashPassword(password string) (string, error)

HashPassword hashes a given password

func Login

func Login(input model.Login) string

func RegisterUser

func RegisterUser(input *model.NewUser) string

RegisterUser creates new users in the database

func VerifyPassword

func VerifyPassword(password, hash string) (bool, string)

VerifyPassword compares the hashed password with the passed in password

Types

This section is empty.

Jump to

Keyboard shortcuts

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