lavender/auth/form.go
2025-03-14 19:24:58 +00:00

14 lines
316 B
Go

package auth
import "github.com/1f349/lavender/auth/authContext"
type Form interface {
Provider
// RenderTemplate returns HTML to embed in the page template.
RenderTemplate(ctx authContext.TemplateContext) error
// AttemptLogin processes the login request.
AttemptLogin(ctx authContext.FormContext) error
}