mail

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateInstance

func CreateInstance() error

CreateInstance creates a new mail instance

func SendConfirmationToken

func SendConfirmationToken(email, sessionToken, vt string) error

SendConfirmationToken takes a validation token, adds it to a pending validation tokens map and sends a link to the user to activate its account

func ValidateConfirmationToken

func ValidateConfirmationToken(uid, token string) (bool, error)

ValidateConfirmationToken checks if a confirmation token is valid. if yes, it returns true and delete the token from the pending validation map. It returns false otherwise

Types

This section is empty.

Jump to

Keyboard shortcuts

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