Started on HTMX support.

This commit is contained in:
mikestefanello 2021-12-22 21:51:18 -05:00
parent 3b41e1dfd8
commit b61077dac9
10 changed files with 123 additions and 27 deletions

View file

@ -45,11 +45,11 @@ func (l *Login) Post(c echo.Context) error {
}
// Parse the form values
form := new(LoginForm)
if err := c.Bind(form); err != nil {
var form LoginForm
if err := c.Bind(&form); err != nil {
return fail("unable to parse login form", err)
}
c.Set(context.FormKey, *form)
c.Set(context.FormKey, form)
// Validate the form
if err := c.Validate(form); err != nil {