mirror of
https://github.com/multica-ai/multica.git
synced 2026-07-05 21:39:54 +02:00
* fix(auth): log email send errors and gracefully degrade in non-production In non-production environments (APP_ENV != "production"), if sending the verification code email fails, log the error as a warning and still return success. This lets self-hosting users log in with the master code (888888) even when their Resend configuration is incomplete (e.g. unverified from-domain). In production, the behavior is unchanged — email failures return 500. Also adds guidance in .env.example about RESEND_FROM_EMAIL for self-hosters. Closes #723 * fix(auth): remove APP_ENV degradation, keep error logging only Remove the APP_ENV-based graceful degradation for email send failures — it's risky if users forget to set APP_ENV=production. Instead, always return 500 on email failure (safe for production) and rely on the error log (slog.Error) with the actual Resend error for debugging. Self-hosters who don't need real emails should leave RESEND_API_KEY empty (codes print to stdout, master code 888888 works).