Compare commits
2 Commits
783d2c322a
...
ccba392ca0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ccba392ca0 | ||
|
|
4e1ba15a5d |
@ -36,11 +36,7 @@ class MessageService {
|
||||
throw new Error("Temporary email not authorized");
|
||||
}
|
||||
|
||||
const isToValid = await Promise.all(
|
||||
messageData.to.split(",").map((email) => this.isValidEmail(email.trim()))
|
||||
);
|
||||
|
||||
if (isToValid.includes(false)) {
|
||||
if (await this.isValidDomain(messageData.to)) {
|
||||
throw new Error("Receiving to temporary email addresses is not allowed");
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user