verivy email before log in
This commit is contained in:
@ -114,6 +114,17 @@ exports.SendEmail = async function (to, subject, text, html, attachments = []) {
|
||||
return result;
|
||||
};
|
||||
|
||||
|
||||
exports.SendEmail_ValidateTemplate = async function (to, token, firstName, lastName) {
|
||||
let validateUrl = process.env.NEXTAUTH_URL + "/api/email?action=email_response&emailaction=validateEmail&token=" + token + "&email=" + to;
|
||||
return await this.SendEmailHandlebars(to, "emailValidate", {
|
||||
user: to,
|
||||
validateUrl: validateUrl,
|
||||
sentDate: common.getDateFormated(new Date())
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
exports.SendEmailHandlebars = async function (to, templateName, model, attachments = []) {
|
||||
try {
|
||||
// Ensure the sender and mailtrapTestClient are correctly defined or imported
|
||||
|
Reference in New Issue
Block a user