- fix link bot for Test Envinroment

- If invite not exist, error message
- Username (where name and surname don't exists).
This commit is contained in:
paoloar77
2022-02-09 19:48:39 +01:00
parent 08b99bf3f8
commit 57a396c374
24 changed files with 106 additions and 65 deletions

View File

@@ -57,7 +57,7 @@ router.post('/', async (req, res) => {
if (lastrec.date_reg) {
let ris = tools.isdiffSecDateLess(lastrec.date_reg, 120);
if (ris) {
tools.writeIPToBan(iscritti.ipaddr + ': ' + iscritti.name + ' ' + iscritti.surname);
tools.writeIPToBan(iscritti.ipaddr + ': ' + tools.getNomeCognomeEUserNameByUser(iscritti));
await tools.snooze(10000);
res.status(400).send({ code: server_constants.RIS_CODE_BANIP, msg: '' });
return 1;