Skip to content

Commit

Permalink
initial checkin
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenlawton committed Nov 15, 2024
1 parent 0126177 commit b2082ff
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,12 @@ func handleSignup(w http.ResponseWriter, r *http.Request) {
err := sendTemplateEmail(ctx, validationEmailTemplateName, validationEmailTemplateSubject, signupReq.Email, params)
if err != nil {
log.Printf("ERROR: failed to send template email: %s to %s [%v] :: %v", validationEmailTemplateName, signupReq.Email, params, err)
http.Error(w, "send Template Email error", http.StatusBadRequest)
http.Error(w, "Send Template Email error:", http.StatusBadRequest)
return
}
} else {
_, err := w.Write([]byte(`{"status":"all ready on list"}`))
if err != nil {
return
}
}
Expand Down

0 comments on commit b2082ff

Please sign in to comment.