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() { function createEmailClient() {
const emailConfig = config.getRawConfig().email; const emailConfig = config.getRawConfig().email;
if (!emailConfig || !emailConfig.no_reply) { if (!emailConfig) {
logger.warn( logger.warn(
"Email SMTP configuration is missing. Emails will not be sent." "Email SMTP configuration is missing. Emails will not be sent."
); );

View file

@ -123,7 +123,7 @@ export async function authWithWhitelist(
if (!whitelistedEmail) { if (!whitelistedEmail) {
if (config.getRawConfig().app.log_failed_attempts) { if (config.getRawConfig().app.log_failed_attempts) {
logger.info( 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( return next(