Refactored all forms to follow new pattern.
This commit is contained in:
parent
d5adf010db
commit
6f50552a15
11 changed files with 133 additions and 195 deletions
|
|
@ -46,8 +46,6 @@ func (c *Contact) Post(ctx echo.Context) error {
|
|||
return c.Fail(ctx, err, "unable to process form submission")
|
||||
}
|
||||
|
||||
//ctx.Set(context.FormKey, form)
|
||||
|
||||
if !form.Submission.HasErrors() {
|
||||
if err := c.Container.Mail.Send(ctx, form.Email, "Hello!"); err != nil {
|
||||
return c.Fail(ctx, err, "unable to send email")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue