emailcodes

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2025 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EmailCodesStore

type EmailCodesStore struct {
	// contains filtered or unexported fields
}

func NewEmailCodesStore

func NewEmailCodesStore(db *badger.DB) *EmailCodesStore

func (*EmailCodesStore) GenCode

func (ecs *EmailCodesStore) GenCode(userID uuid.UUID, newEmail string) (string, error)

func (*EmailCodesStore) VerifyCode

func (ecs *EmailCodesStore) VerifyCode(userID uuid.UUID, email, code string) (bool, error)

Jump to

Keyboard shortcuts

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