Migrate email catcher to Mailpit

This commit is contained in:
gabdevele
2026-06-11 01:25:18 +02:00 Unverified
parent c6dc19269a
commit 34c713e8b3
13 changed files with 26 additions and 26 deletions
+2 -2
View File
@@ -147,12 +147,12 @@ Json::Value AuthService::requestOtp(const Json::Value &body)
email::EmailService mail;
if (!mail.sendOtp(user[0]["email"].as<std::string>(), code))
{
LOG_WARN << "Could not send OTP email through MailHog";
LOG_WARN << "Could not send OTP email through Mailpit";
return failure("otp_email_failed");
}
auto response = success();
response["delivery"] = "mailhog";
response["delivery"] = "mailpit";
response["expires_in_minutes"] = otpTtlMinutes();
return response;
}