send welcome email

This commit is contained in:
juancwu 2026-01-14 15:25:19 +00:00
commit d2560630f4
2 changed files with 48 additions and 1 deletions

View file

@ -327,7 +327,10 @@ func (s *AuthService) CompleteOnboarding(userID, name string) error {
user, err := s.userRepository.ByID(userID)
if err == nil {
// TODO: send welcome email
err = s.emailService.SendWelcomeEmail(user.Email, name)
if err != nil {
slog.Warn("failed to send welcome email", "error", err, "email", user.Email)
}
}
slog.Info("onboarding completed", "user_id", user.ID, "name", name)