Migrate email catcher to Mailpit
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user