mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-19 16:59:45 +02:00
remove no reply check in send email
This commit is contained in:
parent
397036640e
commit
f874449d36
2 changed files with 2 additions and 2 deletions
|
@ -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(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue