Documentation ¶
Index ¶
- func AddingUserTokens(user serializers.User, token, refreshToken string) (serializers.User, error)
- func ComparePassword(hashedPass []byte, inputPass []byte) bool
- func FindByEmail(email string) (serializers.LoginUserSerializer, error)
- func GenerateEmailToken(email string) (string, error)
- func GetUserById(id uint) (serializers.LoginUserSerializer, error)
- func HashAndSalt(password []byte) string
- func UpdateUserVerificationStatus(email interface{}) error
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 ¶
ComparePassword User password and input password
func FindByEmail ¶
func FindByEmail(email string) (serializers.LoginUserSerializer, error)
FindByEmail Find user_controller-services by email
func GenerateEmailToken ¶
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 UpdateUserVerificationStatus ¶
func UpdateUserVerificationStatus(email interface{}) error
UpdateUserVerificationStatus After click on Emailed verification's link, then activate user's account.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.