confirm

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2017 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package confirm implements confirmation of user registration via e-mail

Index

Constants

View Source
const (
	StoreConfirmToken = "confirm_token"
	StoreConfirmed    = "confirmed"

	FormValueConfirm = "cnf"
)

Storer and FormValue constants

Variables

This section is empty.

Functions

This section is empty.

Types

type Confirm

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

Confirm module

func (*Confirm) Initialize

func (c *Confirm) Initialize(ab *authboss.Authboss) (err error)

Initialize the module

func (*Confirm) Routes

func (c *Confirm) Routes() authboss.RouteTable

Routes for the module

func (*Confirm) Storage

func (c *Confirm) Storage() authboss.StorageOptions

Storage requirements

type ConfirmStorer

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

ConfirmStorer must be implemented in order to satisfy the confirm module's storage requirements.

Jump to

Keyboard shortcuts

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