- mappa iniziale

- fix PATCH /chval Json Injections: era possibile cambiare la password !
- ogni giorno sblocca la lista di chi chiede troppe richieste di recupero password.
This commit is contained in:
Surya Paolo
2024-03-21 21:22:57 +01:00
parent 3e0d0bf018
commit bd95e4457f
6 changed files with 77 additions and 21 deletions

View File

@@ -168,7 +168,9 @@ router.post('/', async (req, res) => {
user.surname;
tools.writeIPToBan(msg);
await telegrambot.sendMsgTelegramToTheAdmin(body.idapp, 'BAN: ' + msg, true);
await User.findOneAndUpdate({ _id: user._id }, { $set: { banIp: true } });
await telegrambot.sendMsgTelegramToTheAdmin(body.idapp, '‼️ BAN: ' + msg, true);
await tools.snooze(5000);
res.status(400).