util

package
v0.5.6 Latest Latest
Warning

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

Go to latest
Published: May 18, 2021 License: BSD-3-Clause Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ResetSalt  = "resetpw"
	VerifySalt = "acctsetup"
)

Variables

This section is empty.

Functions

func CheckPassword

func CheckPassword(pass string, minLength, minClasses int) error

Simple password checker to validate passwords before creating an account

func GetTemplateDir

func GetTemplateDir() string

func QRCode

func QRCode(otptoken *ipa.OTPToken) (string, error)

Types

type Emailer

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

func NewEmailer

func NewEmailer(db model.Datastore) (*Emailer, error)

func (*Emailer) SendResetPasswordEmail

func (e *Emailer) SendResetPasswordEmail(uid, email string) error

func (*Emailer) SendVerifyAccountEmail

func (e *Emailer) SendVerifyAccountEmail(uid, email string) error

Jump to

Keyboard shortcuts

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