diff --git a/backend/routes/v2/auth/email_signup.go b/backend/routes/v2/auth/email_signup.go index 28c4022..989c139 100644 --- a/backend/routes/v2/auth/email_signup.go +++ b/backend/routes/v2/auth/email_signup.go @@ -1,7 +1,6 @@ package auth import ( - "fmt" "net/http" "strings" @@ -73,7 +72,6 @@ func (s *Server) postEmailSignupConfirm(w http.ResponseWriter, r *http.Request) } var email string - fmt.Println(emailSignupTicketKey(req.Ticket)) err = s.DB.Redis.Do(ctx, radix.Cmd(&email, "GET", emailSignupTicketKey(req.Ticket))) if err != nil { return errors.Wrap(err, "getting email signup key") diff --git a/backend/routes/v2/auth/send_email.go b/backend/routes/v2/auth/send_email.go index e327333..59cdda7 100644 --- a/backend/routes/v2/auth/send_email.go +++ b/backend/routes/v2/auth/send_email.go @@ -15,6 +15,7 @@ func (s *Server) SendEmail(to, title, template string, data map[string]any) { e := email.NewEmail() e.From = s.emailAddress e.To = []string{to} + e.Subject = title text, html, err := s.Template(template, data) if err != nil { diff --git a/backend/routes/v2/auth/templates/signup.html b/backend/routes/v2/auth/templates/signup.html index f365f03..2058064 100644 --- a/backend/routes/v2/auth/templates/signup.html +++ b/backend/routes/v2/auth/templates/signup.html @@ -11,6 +11,6 @@
Please continue creating a new pronouns.cc account by using the following link:
- +