authentication

package
v0.18.9 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2025 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Overview

templ: version: v0.3.819

templ: version: v0.3.819

templ: version: v0.3.819

templ: version: v0.3.819

templ: version: v0.3.819

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrAuthDetailsWrong  string = "ErrAuthDetailsWrong"
	ErrEmailNotValidated string = "ErrEmailNotValidated"
)
View Source
var (
	UsernameField        string = "UsernameField"
	EmailField           string = "EmailField"
	PasswordField        string = "PasswordField"
	ConfirmPasswordField string = "ConfirmPasswordField"
)

Functions

func ForgottenPasswordForm

func ForgottenPasswordForm(props ForgottenPasswordFormProps) templ.Component

func ForgottenPasswordPage

func ForgottenPasswordPage(csrfToken string) templ.Component

func LoginForm

func LoginForm(csrfToken string, success bool, errors views.Errors) templ.Component

func LoginPage

func LoginPage(data LoginPageProps) templ.Component

func RegisterForm

func RegisterForm(data RegisterFormProps) templ.Component

func RegisterPage

func RegisterPage(data RegisterFormProps) templ.Component

func ResetPasswordForm

func ResetPasswordForm(props ResetPasswordFormProps) templ.Component

func ResetPasswordPage

func ResetPasswordPage(invalidToken, internalErr bool, csrfToken, resetToken string) templ.Component

func ResetPasswordTokenInvalid

func ResetPasswordTokenInvalid() templ.Component

func VerifyEmailPage

func VerifyEmailPage(tokenInvalid bool) templ.Component

Types

type ForgottenPasswordFormProps

type ForgottenPasswordFormProps struct {
	CsrfToken        string
	InternalError    bool
	Success          bool
	NoAssociatedUser bool
}

type LoginPageProps

type LoginPageProps struct {
	Errors    views.Errors
	CsrfToken string
}

type RegisterFormProps

type RegisterFormProps struct {
	InternalError   bool
	SuccessRegister bool
	Fields          map[string]components.InputFieldProps
	CsrfToken       string
}

type ResetPasswordFormProps

type ResetPasswordFormProps struct {
	Fields     map[string]components.InputFieldProps
	CsrfToken  string
	ResetToken string
	Errors     views.Errors
}

Jump to

Keyboard shortcuts

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