update ws and fix bug
This commit is contained in:
@@ -24,7 +24,18 @@ const {
|
||||
generateRandomDigits
|
||||
} = require('../plugins/controllersHelperFunctions')
|
||||
const _faSr = _sr.fa
|
||||
|
||||
const transporter = nodemailer.createTransport({
|
||||
host: 'smtp.c1.liara.email',
|
||||
port: 587,
|
||||
secure: false, // true for 465, false for other ports
|
||||
auth: {
|
||||
user: 'awesome_bell_ncc1hi',
|
||||
pass: '509f8938-db95-4b8d-83e7-9ea8eccfd28b'
|
||||
},
|
||||
tls: {
|
||||
rejectUnauthorized: false
|
||||
}
|
||||
})
|
||||
/// ///////////////////////////////////////////////////////////////// verify account functions
|
||||
function sendConfirmationEmail(userId) {
|
||||
return new Promise(async (resolve, reject) => {
|
||||
@@ -38,18 +49,7 @@ function sendConfirmationEmail(userId) {
|
||||
|
||||
/// //// email configs
|
||||
// const hostURL = 'www.asan-service.com'
|
||||
const transporter = nodemailer.createTransport({
|
||||
host: 'smtp.c1.liara.email',
|
||||
port: 587,
|
||||
secure: false, // true for 465, false for other ports
|
||||
auth: {
|
||||
user: 'awesome_bell_ncc1hi',
|
||||
pass: '509f8938-db95-4b8d-83e7-9ea8eccfd28b'
|
||||
},
|
||||
tls: {
|
||||
rejectUnauthorized: false
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
const emailHTMLTemplate = `
|
||||
<div style="direction: rtl;background-color: #065495;overflow: hidden;">
|
||||
@@ -687,18 +687,7 @@ module.exports.generate_reset_user_password_link = [
|
||||
const hostURL = 'www.asan-service.com'
|
||||
|
||||
if (type === 'email') {
|
||||
const transporter = nodemailer.createTransport({
|
||||
host: 'mail.asan-service.com',
|
||||
port: 587,
|
||||
secure: false, // true for 465, false for other ports
|
||||
auth: {
|
||||
user: 'resetpassword@asan-service.com',
|
||||
pass: '3e9atXQV+7a&'
|
||||
},
|
||||
tls: {
|
||||
rejectUnauthorized: false
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
const emailHTMLTemplate = `
|
||||
<div style="direction: rtl;background-color: #065495;overflow: hidden;">
|
||||
|
||||
Reference in New Issue
Block a user