Updates
This commit is contained in:
@@ -37,6 +37,13 @@ export default async function validateEmail({
|
||||
|
||||
if (welcomeEmailOptions) {
|
||||
const welcomeEmail = await handleNodemailer(welcomeEmailOptions);
|
||||
if (typeof welcomeEmail == "boolean") {
|
||||
return {
|
||||
isValid: false,
|
||||
message: "Email verification failed.",
|
||||
};
|
||||
}
|
||||
|
||||
if (!welcomeEmail?.accepted?.[0]) {
|
||||
return {
|
||||
isValid: false,
|
||||
|
||||
Reference in New Issue
Block a user