questions

package
v0.4.2-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

nolint

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ManagementProvider

type ManagementProvider interface {
	RecoveryManager() *Manager
}

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

func (*Manager) HashSecurityQuestions

func (m *Manager) HashSecurityQuestions(i *identity.Identity, answers map[string]string) error

func (*Manager) SetSecurityAnswers

func (m *Manager) SetSecurityAnswers(ctx context.Context, i *identity.Identity, answers map[string]string, validationPrefix string) error

func (*Manager) SetSecurityFormFields

func (m *Manager) SetSecurityFormFields(ctx context.Context, i *identity.Identity, prefix string, htmlf *form.HTMLForm) error

type RecoverySecurityAnswer

type RecoverySecurityAnswer struct {
	// required: true
	ID uuid.UUID `json:"id" db:"id" faker:"-"`

	Key    string `json:"key" db:"key"`
	Answer string `json:"answer" db:"answer"`

	// IdentityID is a helper struct field for gobuffalo.pop.
	IdentityID uuid.UUID `json:"-" faker:"-" db:"identity_id"`
	// CreatedAt is a helper struct field for gobuffalo.pop.
	CreatedAt time.Time `json:"-" faker:"-" db:"created_at"`
	// UpdatedAt is a helper struct field for gobuffalo.pop.
	UpdatedAt time.Time `json:"-" faker:"-" db:"updated_at"`
}

type RecoverySecurityAnswers

type RecoverySecurityAnswers []RecoverySecurityAnswer

func (RecoverySecurityAnswers) TableName

func (a RecoverySecurityAnswers) TableName() string

type RecoverySecurityQuestion

type RecoverySecurityQuestion struct {
	ID    string `json:"id"`
	Label string `json:"label"`
}

Jump to

Keyboard shortcuts

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