verify

package
v0.0.0-...-c86d00c Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResendVerificationEmail

func ResendVerificationEmail(db *gorm.DB) func(w http.ResponseWriter, r *http.Request)

ResendVerificationEmail resends verification email and deletes the old one from the database

func SendConfirmation

func SendConfirmation(db *gorm.DB, userEmail string, userId int64) error

SendConfirmation sends an email verification on account creation

func VerifyEmail

func VerifyEmail(db *gorm.DB) func(w http.ResponseWriter, r *http.Request)

VerifyEmail awaits for the SendConfirmation email to be verified

Types

type ResendRequest

type ResendRequest struct {
	Email string `json:"email"`
}

Jump to

Keyboard shortcuts

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