Skip to content

Commit

Permalink
fix skipping carddav forms
Browse files Browse the repository at this point in the history
  • Loading branch information
denyskon committed Jan 23, 2024
1 parent 07e0ecd commit b7b4b46
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ func main() {
form.MailConfig.Template = fmt.Sprintf("%s/%s", config.TemplateDir, form.MailConfig.Template)
}
case "carddav":
continue
{
}
default:
{
log.Fatalf("unknown type %s for form %s", form.Type, name)
Expand Down Expand Up @@ -133,11 +134,6 @@ func formHandler(wr http.ResponseWriter, req *http.Request) {
case "mail":
{
acc := mailAccounts[form.MailConfig.Account]
if acc != nil {
err = fmt.Errorf("mail account %s for form %s does not exist", form.MailConfig.Account, name)
break
}

err = mail_service.HandleForm(form, req, acc)
}
case "carddav":
Expand Down

0 comments on commit b7b4b46

Please sign in to comment.