Documentation
¶
Overview ¶
templ: version: v0.2.747
templ: version: v0.2.747
templ: version: v0.2.747
Index ¶
- Constants
- func LoginForm(lfv LoginFormValue, lfe LoginFormErrors, err error) templ.Component
- func LoginPage(c shared.Context, lpf LoginPageForms) templ.Component
- func RegisterForm(rfv RegisterFormValue, rfe RegisterFormErrors, err error) templ.Component
- type LoginFormErrors
- type LoginFormValue
- type LoginPageForms
- type RegisterFormErrors
- type RegisterFormValue
Constants ¶
View Source
const ( IdentifierField = "email" PasswordField = "password" )
View Source
const ( EmailField = "email" UsernameField = "username" PasswordRepeatField = "password_repeat" )
Variables ¶
This section is empty.
Functions ¶
func LoginForm ¶
func LoginForm(lfv LoginFormValue, lfe LoginFormErrors, err error) templ.Component
func RegisterForm ¶
func RegisterForm(rfv RegisterFormValue, rfe RegisterFormErrors, err error) templ.Component
Types ¶
type LoginFormErrors ¶
type LoginFormValue ¶
func GetLoginFormValue ¶
func GetLoginFormValue(c echo.Context) LoginFormValue
func (LoginFormValue) Validate ¶
func (lfv LoginFormValue) Validate() (LoginFormErrors, error)
type LoginPageForms ¶
type LoginPageForms struct {
LoginFormValue LoginFormValue
LoginFormErrors LoginFormErrors
RegisterFormValue RegisterFormValue
RegisterFormErrors RegisterFormErrors
}
type RegisterFormErrors ¶
type RegisterFormValue ¶
type RegisterFormValue struct {
Email string
Username string
Password string
PasswordRepeat string
}
func GetRegisterFormValue ¶
func GetRegisterFormValue(c echo.Context) RegisterFormValue
func (RegisterFormValue) Validate ¶
func (rfv RegisterFormValue) Validate() (RegisterFormErrors, error)
Click to show internal directories.
Click to hide internal directories.