Fix: Todo Multi refresh ...

fix some promises problem
This commit is contained in:
Paolo Arena
2019-02-15 01:38:01 +01:00
parent f6fa45a9e9
commit f44d3dc661
3 changed files with 8 additions and 2 deletions

View File

@@ -57,7 +57,7 @@ module.exports = {
.then(console.log)
.catch(console.error);
},
sendEmail_Normale: function (username, to, subject, html) {
sendEmail_Normale: function (to, subject, html) {
// setup e-mail data with unicode symbols
var mailOptions = {
@@ -118,6 +118,9 @@ module.exports = {
};
this.sendEmail_base('registration/' + lang, user, emailto, mylocalsconf);
// Send to the Admin an Email
this.sendEmail_Normale(process.env.EMAIL_FROM, 'Nuova Registrazione: (' + user + ")", 'Effettuata una Nuova Registrazione!<br>Username:' + user + '<br></br>Email: ' + emailto +'<br>')
},
sendEmail_RequestNewPassword: function (lang, emailto, idapp, tokenforgot) {