add password reset model ; create entry in database; send email
This commit is contained in:
@@ -14,6 +14,7 @@ type repoManager interface {
|
||||
Organization() OrganizationRepo
|
||||
Zipcodes() ZipcodeRepo
|
||||
Plans() PlanRepo
|
||||
PasswordReset() PasswordResetRepo
|
||||
}
|
||||
|
||||
// UserRepo defines the data set for users
|
||||
@@ -22,6 +23,7 @@ type UserRepo interface {
|
||||
GetByID(userID int64) (retVal entity.User, err error)
|
||||
GetByUUID(uuid string, profile string) (entity.User, error)
|
||||
GetByMemberID(memberID string) (entity.User, error)
|
||||
GetByEmail(email string) (entity.User, error)
|
||||
Login(email string, pass string) (entity.User, error)
|
||||
FullLogin(loginType string, key string, pass string, profile string) (entity.User, error)
|
||||
Create(user entity.User) (entity.User, error)
|
||||
@@ -124,3 +126,12 @@ type ZipcodeRepo interface {
|
||||
GetAll() ([]entity.Zipcode, error)
|
||||
GetByParticipatingZipcode(zipcode string) (entity.Zipcode, error)
|
||||
}
|
||||
|
||||
type PasswordResetRepo interface {
|
||||
GetAll() ([]entity.PasswordReset, error)
|
||||
CreatePasswordResetEntry(passwordResetEntry entity.PasswordReset) (entity.PasswordReset, error)
|
||||
GetByID(ID int64) (entity.PasswordReset, error)
|
||||
GetByToken(token string) (entity.PasswordReset, error)
|
||||
SetTokenOpened(token string) error
|
||||
SetTokenUsed(token string) error
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user