onetimecodesrepo

package
v0.0.0-...-ffefdcf Latest Latest
Warning

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

Go to latest
Published: May 22, 2022 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ResetCodesRepo

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

func NewResetCodesRepo

func NewResetCodesRepo(redis *redis.Client, resetPasswordTTL time.Duration) *ResetCodesRepo

func (*ResetCodesRepo) CreateResetPasswordCode

func (r *ResetCodesRepo) CreateResetPasswordCode(ctx context.Context, email string, code string) error

func (*ResetCodesRepo) DeleteResetPasswordCode

func (r *ResetCodesRepo) DeleteResetPasswordCode(ctx context.Context, email string) error

func (*ResetCodesRepo) GetResetPasswordCode

func (r *ResetCodesRepo) GetResetPasswordCode(ctx context.Context, email string) (string, error)

Jump to

Keyboard shortcuts

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