forms

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoginErrors

type LoginErrors struct {
	Email    string
	Password string
	General  string
}

func (*LoginErrors) HasErrors

func (e *LoginErrors) HasErrors() bool

type LoginForm

type LoginForm struct {
	Email    string
	Password string
}

func (*LoginForm) Validate

func (f *LoginForm) Validate() LoginErrors

type RegisterErrors

type RegisterErrors struct {
	Email           string
	Password        string
	PasswordConfirm string
	General         string
}

func (*RegisterErrors) HasErrors

func (e *RegisterErrors) HasErrors() bool

type RegisterForm

type RegisterForm struct {
	Email           string
	Password        string
	PasswordConfirm string
}

func (*RegisterForm) Validate

func (f *RegisterForm) Validate() RegisterErrors

Jump to

Keyboard shortcuts

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