utils

package
v0.0.0-...-de20da1 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddingUserTokens

func AddingUserTokens(user serializers.User, token, refreshToken string) (serializers.User, error)

func ComparePassword

func ComparePassword(hashedPass []byte, inputPass []byte) bool

ComparePassword User password and input password

func FindByEmail

func FindByEmail(email string) (serializers.LoginUserSerializer, error)

FindByEmail Find user_controller-services by email

func GenerateEmailToken

func GenerateEmailToken(email string) (string, error)

GenerateEmailToken Generate Token for email verification, this token will part of query parameter.

func GetUserById

func GetUserById(id uint) (serializers.LoginUserSerializer, error)

func HashAndSalt

func HashAndSalt(password []byte) string

func UpdateUserVerificationStatus

func UpdateUserVerificationStatus(email interface{}) error

UpdateUserVerificationStatus After click on Emailed verification's link, then activate user's account.

Types

This section is empty.

Jump to

Keyboard shortcuts

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