remove no reply check in send email

This commit is contained in:
Milo Schwartz 2025-01-28 22:13:46 -05:00
parent 397036640e
commit f874449d36
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View file

@ -6,7 +6,7 @@ import logger from "@server/logger";
function createEmailClient() {
const emailConfig = config.getRawConfig().email;
if (!emailConfig || !emailConfig.no_reply) {
if (!emailConfig) {
logger.warn(
"Email SMTP configuration is missing. Emails will not be sent."
);

View file

@ -123,7 +123,7 @@ export async function authWithWhitelist(
if (!whitelistedEmail) {
if (config.getRawConfig().app.log_failed_attempts) {
logger.info(
`Email is not whitelisted. Resource ID: ${resource?.resourceId}. Email: ${email}. IP: ${req.ip}.`
`Email is not whitelisted. Email: ${email}. IP: ${req.ip}.`
);
}
return next(