recover

package
v0.0.0-...-45dedd0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2016 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package recover implements password reset via e-mail.

Index

Constants

View Source
const (
	StoreRecoverToken       = "recover_token"
	StoreRecoverTokenExpiry = "recover_token_expiry"
)

Storage constants

Variables

This section is empty.

Functions

This section is empty.

Types

type Recover

type Recover struct {
	*authboss.Authboss
	// contains filtered or unexported fields
}

Recover module

func (*Recover) Initialize

func (r *Recover) Initialize(ab *authboss.Authboss) (err error)

Initialize module

func (*Recover) Routes

func (r *Recover) Routes() authboss.RouteTable

Routes for module

func (*Recover) Storage

func (r *Recover) Storage() authboss.StorageOptions

Storage requirements

type RecoverStorer

type RecoverStorer interface {
	authboss.Storer
	// RecoverUser looks a user up by a recover token. See recover module for
	// attribute names. If the key is not found in the data store,
	// simply return nil, ErrUserNotFound.
	RecoverUser(recoverToken string) (interface{}, error)
}

RecoverStorer must be implemented in order to satisfy the recover module's storage requirements.

Jump to

Keyboard shortcuts

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