Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeForm ¶
Types ¶
type LoginForm ¶
type LoginForm struct {
// Need to include this because of gorilla/schema.
// Schema should really ignore this field if it is
// not declared in the struct or set to "-".
// However, it currently returns an error on decode
CsrfToken string `schema:"CsrfToken"`
Email string `schema:"email"`
Password string `schema:"password"`
}
type SignupForm ¶
type SignupForm struct {
Email string `schema:"email"`
EmailConfirmation string `schema:"email-confirmation"`
Password string `schema:"password"`
PasswordConfirmation string `schema:"password-confirmation"`
}
func (SignupForm) Validate ¶
func (f SignupForm) Validate() error
Click to show internal directories.
Click to hide internal directories.