auth

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	DB           *bun.DB
	SQLDB        *sql.DB
	Tokens       *token.Tokens
	BaseURL      string
	EmailService infrastructure.EmailService
	Log          *log.Logger
}

func NewHandler

func NewHandler(db *bun.DB, sqldb *sql.DB, tokens *token.Tokens, baseURL string, emailSvc infrastructure.EmailService) *Handler

func (*Handler) ForgotPasswordPage

func (h *Handler) ForgotPasswordPage(w http.ResponseWriter, r *http.Request)

func (*Handler) ForgotPasswordPost

func (h *Handler) ForgotPasswordPost(w http.ResponseWriter, r *http.Request)

func (*Handler) LoginPage

func (h *Handler) LoginPage(w http.ResponseWriter, r *http.Request)

func (*Handler) LoginPost

func (h *Handler) LoginPost(w http.ResponseWriter, r *http.Request)

func (*Handler) LogoutPost

func (h *Handler) LogoutPost(w http.ResponseWriter, r *http.Request)

func (*Handler) RegisterPage

func (h *Handler) RegisterPage(w http.ResponseWriter, r *http.Request)

func (*Handler) RegisterPost

func (h *Handler) RegisterPost(w http.ResponseWriter, r *http.Request)

func (*Handler) ResetPasswordPage

func (h *Handler) ResetPasswordPage(w http.ResponseWriter, r *http.Request)

func (*Handler) ResetPasswordPost

func (h *Handler) ResetPasswordPost(w http.ResponseWriter, r *http.Request)

func (*Handler) Routes

func (h *Handler) Routes() chi.Router

Jump to

Keyboard shortcuts

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