Added HTTPS to express
check registration send email: OK
This commit is contained in:
@@ -22,8 +22,8 @@ var smtpTransport = nodemailer.createTransport({
|
||||
});
|
||||
|
||||
function checkifSendEmail() {
|
||||
//return process.env.SEND_EMAIL === "1";
|
||||
return false;
|
||||
return process.env.SEND_EMAIL === "1";
|
||||
//return false;
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
@@ -87,7 +87,8 @@ module.exports = {
|
||||
},
|
||||
getHostByIdApp: function (idapp) {
|
||||
if (idapp === 1) {
|
||||
return process.env.URLBASE_APP1 + ':' + process.env.PORT_APP1;
|
||||
let siteport = (process.env.PORT_APP1 !== "0") ? (':' + process.env.PORT_APP1) : "";
|
||||
return process.env.URLBASE_APP1 + siteport;
|
||||
}else{
|
||||
return ""
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user