Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ResetToken ¶
type ResetToken struct { Id string `json:"-" sql:"id"` Created int64 `json:"-" sql:"created"` Updated int64 `json:"-" sql:"updated"` Email string `json:"-" sql:"email"` Used bool `json:"-" sql:"used"` }
a user reset token
func CreateResetToken ¶
func CreateResetToken(db sqlutil.Execable, email string) (*ResetToken, error)
create a reset token
func (*ResetToken) Usable ¶
func (r *ResetToken) Usable() error
returns nil if the token is usable, otherwise returns an error
Click to show internal directories.
Click to hide internal directories.