login

package
v0.0.0-...-276a1f6 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

templ: version: v0.3.960

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoginForm

func LoginForm(args LoginFormArgs) templ.Component

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler(authService authconnect.AuthServiceClient) *Handler

func (*Handler) HandleLoginForm

func (h *Handler) HandleLoginForm(c echo.Context) error

type LoginFormArgs

type LoginFormArgs struct {
	ID          string // Form ID for signal namespacing
	RedirectURL string // Where to redirect on success
	// Fields for preserving user input and displaying errors
	Email         string // Preserved user input
	Password      string // Preserved user input
	EmailError    string // Field-specific error
	PasswordError string // Field-specific error
}

LoginFormArgs contains configuration for the login form

type LoginFormSignals

type LoginFormSignals struct {
	Email         string `json:"email"`
	Password      string `json:"password"`
	EmailError    string `json:"emailError"`
	PasswordError string `json:"passwordError"`
}

LoginFormSignals defines the client-side state for the login form

Jump to

Keyboard shortcuts

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