Преглед на файлове

remove no reply check in send email

Milo Schwartz преди 6 месеца
родител
ревизия
f874449d36
променени са 2 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 1 1
      server/emails/index.ts
  2. 1 1
      server/routers/resource/authWithWhitelist.ts

+ 1 - 1
server/emails/index.ts

@@ -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."
         );

+ 1 - 1
server/routers/resource/authWithWhitelist.ts

@@ -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(