account

package
v0.0.0-...-dd30ea9 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountDb

type AccountDb struct {
	Base *pg.Db
	// contains filtered or unexported fields
}

func New

func New(db database.Db) *AccountDb

func (*AccountDb) ChangeMyPassword

func (t *AccountDb) ChangeMyPassword(tx interface{}, password string) error

func (*AccountDb) ChangePassword

func (t *AccountDb) ChangePassword(tx interface{}, id string, password string) error

func (*AccountDb) FullLoadUser

func (t *AccountDb) FullLoadUser(tx interface{}, user *domain.User) (err error)

func (*AccountDb) LoginDelay

func (t *AccountDb) LoginDelay(tx interface{}, delay time.Duration) error

func (*AccountDb) LoginUser

func (t *AccountDb) LoginUser(tx interface{}, email, password string, ipaddress string, validatePassword bool) (*domain.Session, error)

TODO: implement session.SessionCreate instead of doing this directly to sessions table

func (*AccountDb) LogoutUser

func (t *AccountDb) LogoutUser(tx interface{}) error

func (*AccountDb) PasswordRecoverCreateToken

func (t *AccountDb) PasswordRecoverCreateToken(tx interface{}, user *domain.User) error

func (*AccountDb) SessionDb

func (t *AccountDb) SessionDb() database.Session

func (*AccountDb) SetSessionDb

func (t *AccountDb) SetSessionDb(item *database.Session)

func (*AccountDb) SetUserDb

func (t *AccountDb) SetUserDb(item *database.User)

func (*AccountDb) UserDb

func (t *AccountDb) UserDb() database.User

func (*AccountDb) VerifyTokenEmail

func (t *AccountDb) VerifyTokenEmail(tx interface{}, user *domain.User, ipaddress string) error

Jump to

Keyboard shortcuts

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