Started on HTMX support.
This commit is contained in:
parent
3b41e1dfd8
commit
b61077dac9
10 changed files with 123 additions and 27 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue