captcha_component

package
v0.3.7 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustValid

func MustValid(c hiro.Ctx) bool

func Valid

func Valid(c hiro.Ctx) (bool, error)

Types

type Captcha

type Captcha struct {
	hiro.Component
	Answer         int       `json:"answer"`
	Attempt        int       `json:"attempt"`
	LastAttempt    time.Time `json:"lastAttempt"`
	ChallengeToken string    `json:"-"`
	SuccessToken   string    `json:"-"`
	Valid          bool      `json:"-"`
}

func (*Captcha) GetImg

func (c *Captcha) GetImg() error

func (*Captcha) HandleCheck

func (c *Captcha) HandleCheck() error

func (*Captcha) HandleChoose

func (c *Captcha) HandleChoose() error

func (*Captcha) Mount

func (c *Captcha) Mount()

func (*Captcha) Name

func (c *Captcha) Name() string

func (*Captcha) Node

func (c *Captcha) Node() Node

Jump to

Keyboard shortcuts

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