activate

package
v0.0.0-...-0ba6107 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2017 License: MIT Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrAlreadyActivated if the user was already confirmed.
	ErrAlreadyActivated = wwm.Error{"User with this ID was already activated", http.StatusBadRequest}
)

Functions

This section is empty.

Types

type ActivateUseCase

type ActivateUseCase interface {
	Activate(Request) error
}

ActivateUseCase can confirm the mail adress of a new registration.

type Interactor

type Interactor struct {
	user.Store
}

Interactor can do the Activation logic.

func (Interactor) Activate

func (i Interactor) Activate(req Request) error

Activate checks if the RegistrationID matches and enables the account.

type Request

type Request struct {
	RegistrationID string `json:"registrationID"`
}

Request contains the required RegistrationID as proof that the email was received.

Jump to

Keyboard shortcuts

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