Documentation ¶
Index ¶
- func InitModels()
- type Manager
- func (pwm *Manager) DeleteResetToken(token string) (err error)
- func (pwm *Manager) FindResetToken(token string) (tokenobj *ResetToken, err error)
- func (pwm *Manager) NewResetToken(username string) (token *ResetToken, err error)
- func (pwm *Manager) Save(username, password string) error
- func (pwm *Manager) SaveResetToken(token *ResetToken) (err error)
- func (pwm *Manager) Validate(username, password string) (bool, error)
- type ResetToken
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager stores and validates passwords
func (*Manager) DeleteResetToken ¶
DeleteResetToken delete reset token by token
func (*Manager) FindResetToken ¶
func (pwm *Manager) FindResetToken(token string) (tokenobj *ResetToken, err error)
FindResetToken find reset token by token
func (*Manager) NewResetToken ¶
func (pwm *Manager) NewResetToken(username string) (token *ResetToken, err error)
NewResetToken get new reset token
func (*Manager) SaveResetToken ¶
func (pwm *Manager) SaveResetToken(token *ResetToken) (err error)
SaveResetToken save reset token
Directories ¶
Path | Synopsis |
---|---|
crypt
Package crypt provides interface for password crypt functions and collects common constants.
|
Package crypt provides interface for password crypt functions and collects common constants. |
crypt/sha512crypt
Package sha512crypt implements Ulrich Drepper's SHA512-crypt password hashing algorithm.
|
Package sha512crypt implements Ulrich Drepper's SHA512-crypt password hashing algorithm. |
Click to show internal directories.
Click to hide internal directories.