lavender/auth/auth-form.go

14 lines
316 B
Go
Raw Permalink Normal View History

2025-01-25 19:49:57 +00:00
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
}