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

@ -50,11 +50,11 @@ func (f *ForgotPassword) Post(c echo.Context) error {
}
// Parse the form values
form := new(ForgotPasswordForm)
if err := c.Bind(form); err != nil {
var form ForgotPasswordForm
if err := c.Bind(&form); err != nil {
return fail("unable to parse forgot password form", err)
}
c.Set(context.FormKey, *form)
c.Set(context.FormKey, form)
// Validate the form
if err := c.Validate(form); err != nil {