Skip to content

Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.

Go

fix(auth): graceful email degradation for self-hosting (#742)

Jiayuan Zhangf100b5b70716
diff --git a/.env.example b/.env.example
index 8a98d2d893..3cfd7eb6e5 100644
--- a/.env.example
+++ b/.env.example
@@ -22,6 +22,8 @@ MULTICA_CODEX_WORKDIR=
MULTICA_CODEX_TIMEOUT=20m
# Email (Resend)
+# For local/dev use, leave RESEND_API_KEY empty — codes print to stdout, and master code 888888 works.
+# For production, set your Resend API key and change RESEND_FROM_EMAIL to a domain verified in your Resend account.
RESEND_API_KEY=
diff --git a/server/internal/handler/auth.go b/server/internal/handler/auth.go
index 7fc99b9627..7380acce75 100644
--- a/server/internal/handler/auth.go
+++ b/server/internal/handler/auth.go
@@ -241,6 +241,7 @@ func (h *Handler) SendCode(w http.ResponseWriter, r *http.Request) {
}
if err := h.EmailService.SendVerificationCode(email, code); err != nil {
+ slog.Error("failed to send verification code", "email", email, "error", err)
writeError(w, http.StatusInternalServerError, "failed to send verification code")
return
}