Attacco SPAM
This commit is contained in:
@@ -530,7 +530,7 @@ module.exports = {
|
||||
|
||||
getMsgByTipoMsg: async function (mydata, lang, user, sonosognatore) {
|
||||
if (!!mydata.msgextra) {
|
||||
return { body: mydata.msgextra, title: ''} ;
|
||||
return { body: mydata.msgextra, title: '' };
|
||||
}
|
||||
|
||||
let title = '';
|
||||
@@ -696,7 +696,10 @@ module.exports = {
|
||||
|
||||
if (mydata.inviaemail && !!user.email) {
|
||||
// user.email = 'paolo.arena77@gmail.com';
|
||||
await sendemail.sendEmail_ByText(user.lang, user.email, user, idapp, {emailbody: mymsg, emailtitle: mytitle});
|
||||
await sendemail.sendEmail_ByText(user.lang, user.email, user, idapp, {
|
||||
emailbody: mymsg,
|
||||
emailtitle: mytitle
|
||||
});
|
||||
strout += ' -> (EMAIL OK)';
|
||||
}
|
||||
|
||||
@@ -720,7 +723,7 @@ module.exports = {
|
||||
let msg = '';
|
||||
if (!!flotta) {
|
||||
if (!!mydata.tipomsg) {
|
||||
msg = 'Flotta ' + strflotta + '): ' + tools.getStrMsgByTipoMsg(mydata.tipomsg) + '\n' + mymsg ;
|
||||
msg = 'Flotta ' + strflotta + '): ' + tools.getStrMsgByTipoMsg(mydata.tipomsg) + '\n' + mymsg;
|
||||
} else {
|
||||
msg = 'Inviato messaggio a tutta la FLOTTA DA ' + flotta.riga + '.' + flotta.col_prima + ' A ' + flotta.riga + '.' + flotta.col_ultima + ' \n' + mymsg;
|
||||
}
|
||||
@@ -1356,14 +1359,15 @@ class Telegram {
|
||||
if (user) {
|
||||
let ispaypal = false;
|
||||
if (!!user.profile.paymenttypes) {
|
||||
if (user.profile.paymenttypes.includes('paypal')) {
|
||||
/*if (user.profile.paymenttypes.includes('paypal')) {
|
||||
if (user.profile.email_paypal) {
|
||||
ispaypal = true
|
||||
}
|
||||
}
|
||||
}*/
|
||||
|
||||
if (!!user.profile)
|
||||
if (!!user.profile.paymenttypes) {
|
||||
return (user.profile.paymenttypes.length >= 1) && ispaypal;
|
||||
return (user.profile.paymenttypes.length >= 1);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -2015,8 +2019,14 @@ class Telegram {
|
||||
// chiedisino = true;
|
||||
// rec.msgall_status = StatusMSGALL.CONFIRM;
|
||||
FormDaMostrare = this.getInlineKeyboard(lang, [
|
||||
{ text: Menu[lang].SI, callback_data: { action: InlineCmd.VOGLIO_IMBARCARMI, username: utente.username } },
|
||||
{ text: Menu[lang].NO, callback_data: { action: InlineCmd.NON_VOGLIO_IMBARCARMI, username: utente.username } },
|
||||
{
|
||||
text: Menu[lang].SI,
|
||||
callback_data: { action: InlineCmd.VOGLIO_IMBARCARMI, username: utente.username }
|
||||
},
|
||||
{
|
||||
text: Menu[lang].NO,
|
||||
callback_data: { action: InlineCmd.NON_VOGLIO_IMBARCARMI, username: utente.username }
|
||||
},
|
||||
]);
|
||||
inviaveramente = true;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user