mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-04 10:05:53 +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() {
|
||||
const emailConfig = config.getRawConfig().email;
|
||||
if (!emailConfig || !emailConfig.no_reply) {
|
||||
if (!emailConfig) {
|
||||
logger.warn(
|
||||
"Email SMTP configuration is missing. Emails will not be sent."
|
||||
);
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue