corretto errore che se sbagliava password dava errore... myuser...

This commit is contained in:
Surya Paolo
2025-04-30 14:43:45 +02:00
parent e40fbd550b
commit 97abe8b46d

View File

@@ -776,7 +776,7 @@ router.post('/login', checkBlocked, async (req, res) => {
if (numvolteerrati > 2) {
const msg = 'Tentativo (' + numvolteerrati + ') di Login ERRATO [' + body.username + ' , ' + ']\n' + '[IP: ' + tools.getiPAddressUser(req) + ']';
tools.mylogshow(msg);
await telegrambot.sendMsgTelegramToTheAdmin(myuser.idapp, msg, true);
await telegrambot.sendMsgTelegramToTheAdmin(req.body.idapp, msg, true);
tools.writeErrorLog(msg);
}