user

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComparePasswords

func ComparePasswords(hashPass string, plainPass []byte) bool

ComparePasswords compares a hashed password with a plaintext one

func Encode

func Encode(s string) string

Encode encodes the provided string using base64 encoding. It returns the encoded string.

func GetRandomCode

func GetRandomCode(first, second string) string

GetRandomCode concatenates the first and second strings and encodes the result using base64 encoding. It returns the encoded string.

func MemberLogin

func MemberLogin(email, password string) bool

MemberLogin handles the member login process

func UserLogin

func UserLogin(email, password string) bool

UserLogin handles the user login process

Types

This section is empty.

Jump to

Keyboard shortcuts

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