Documentation
¶
Index ¶
- Constants
- func ComparePasswords(hashed, plain string) bool
- func GenerateJWT(username, email string) (string, error)
- func GeneratePwd() (string, error)
- func HashAndSalt(password string) (string, error)
- func IsAuditEvent(eventName string) bool
- func SendResetPasswordEmail(email, token string) error
- func SendVerificationEmail(email, token string) error
- func VerifyTokenWithGateway(token string, gatewayURL string) (bool, error)
- type Claims
Constants ¶
View Source
const ( CreateEvent string = "Create" UpdateEvent string = "Update" DeleteEvent string = "Delete" )
Variables ¶
This section is empty.
Functions ¶
func ComparePasswords ¶
ComparePasswords compare the hashed and plain passwords
func GenerateJWT ¶
func GeneratePwd ¶
func HashAndSalt ¶
HashAndSalt hash and salt the password
func IsAuditEvent ¶
func SendResetPasswordEmail ¶
func SendVerificationEmail ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.