mirror of
https://github.com/fosrl/pangolin.git
synced 2026-03-04 01:36:39 +00:00
remove no reply check in send email
This commit is contained in:
@@ -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."
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -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(
|
||||||
|
|||||||
Reference in New Issue
Block a user