authboss: alab.us/open-source-forks/authboss/confirm Index | Files

package confirm

import "alab.us/open-source-forks/authboss/confirm"

Package confirm implements confirmation of user registration via e-mail

Index

Package Files

confirm.go

Constants

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

    FormValueConfirm = "cnf"
)

Storer and FormValue constants

type Confirm Uses

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

Confirm module

func (*Confirm) Initialize Uses

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

Initialize the module

func (*Confirm) Routes Uses

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

Routes for the module

func (*Confirm) Storage Uses

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

Storage requirements

type ConfirmStorer Uses

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.

Package confirm imports 10 packages (graph). Updated 2020-08-04. Refresh now. Tools for package owners.