minty-cafe/web/handler/form/login.go
2026-03-11 19:14:41 +00:00

18 lines
259 B
Go

package form
import (
"net/http"
)
type LoginForm struct {
Username string
Password string
Error string
}
func NewLoginForm(r *http.Request) *LoginForm {
return &LoginForm{
Username: r.FormValue("name"),
Password: r.FormValue("password"),
}
}