sample

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Auth = maildoor.New(
	maildoor.Prefix("/auth/"),
	maildoor.Icon("https://raw.githubusercontent.com/wawandco/maildoor/5de0561/internal/sample/logo.png"),
	maildoor.Logo("https://raw.githubusercontent.com/wawandco/maildoor/5de0561/internal/sample/logo.png"),
	maildoor.ProductName("Basse"),
	maildoor.EmailValidator(validateEmail),
	maildoor.AfterLogin(afterLogin),
	maildoor.EmailSender(sendEmail),
	maildoor.Logout(logout),
)

Auth handler with custom email validator and after login function

Functions

func Home

func Home(w http.ResponseWriter, r *http.Request)

Simple home handler with link to the login page

func Private

func Private(w http.ResponseWriter, r *http.Request)

Private handler to show the private content to the user

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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