chore: change email server of smtp
This commit is contained in:
@@ -30,8 +30,8 @@ const transporter = nodemailer.createTransport({
|
||||
port: 587,
|
||||
secure: false, // true for 465, false for other ports
|
||||
auth: {
|
||||
user: 'awesome_bell_ncc1hi',
|
||||
pass: '509f8938-db95-4b8d-83e7-9ea8eccfd28b'
|
||||
user: 'boring_bouman_81kd95',
|
||||
pass: 'ec9e96d3-6108-4ca5-97a9-39fff09d3557'
|
||||
},
|
||||
tls: {
|
||||
rejectUnauthorized: false
|
||||
@@ -52,7 +52,6 @@ function sendConfirmationEmail(userId) {
|
||||
/// //// email configs
|
||||
// const hostURL = 'www.asan-service.com'
|
||||
|
||||
|
||||
const emailHTMLTemplate = `
|
||||
<div style="direction: rtl;background-color: #065495;overflow: hidden;">
|
||||
<div
|
||||
@@ -685,8 +684,6 @@ module.exports.generate_reset_user_password_link = [
|
||||
const hostURL = 'www.asan-service.com'
|
||||
|
||||
if (type === 'email') {
|
||||
|
||||
|
||||
const emailHTMLTemplate = `
|
||||
<div style="direction: rtl;background-color: #065495;overflow: hidden;">
|
||||
<div
|
||||
@@ -1121,7 +1118,6 @@ module.exports.add_user = [
|
||||
user.panatech_businessID = panatechID.businessID
|
||||
user.panatech_businessCode = panatechID.businessCode
|
||||
|
||||
|
||||
// save new info to arpa
|
||||
await updateUserOnArpa(user, user.verity_businessID, 'verity')
|
||||
await updateUserOnArpa(user, user.panatech_businessID, 'panatech')
|
||||
@@ -1220,7 +1216,6 @@ module.exports.change_panatech_info_by_admin = [
|
||||
}
|
||||
]
|
||||
|
||||
|
||||
module.exports.update_user_by_admin = [
|
||||
[
|
||||
body('first_name')
|
||||
@@ -1369,7 +1364,6 @@ module.exports.update_user_by_admin = [
|
||||
return res404(res, _faSr.not_found.user_id)
|
||||
}
|
||||
|
||||
|
||||
// check if need to ferify email or mobile
|
||||
const newEmail = user.email !== MongoData.email
|
||||
const newMobile = user.mobile_number !== MongoData.mobile_number
|
||||
@@ -1395,8 +1389,6 @@ module.exports.update_user_by_admin = [
|
||||
user.mobile_number = MongoData.mobile_number
|
||||
user.email = MongoData.email
|
||||
|
||||
|
||||
|
||||
await user.save()
|
||||
|
||||
// send confirmation key after user saved
|
||||
@@ -1766,6 +1758,3 @@ module.exports.getUser = [
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user