corretto errore che se sbagliava password dava errore... myuser...
This commit is contained in:
@@ -776,7 +776,7 @@ router.post('/login', checkBlocked, async (req, res) => {
|
|||||||
if (numvolteerrati > 2) {
|
if (numvolteerrati > 2) {
|
||||||
const msg = 'Tentativo (' + numvolteerrati + ') di Login ERRATO [' + body.username + ' , ' + ']\n' + '[IP: ' + tools.getiPAddressUser(req) + ']';
|
const msg = 'Tentativo (' + numvolteerrati + ') di Login ERRATO [' + body.username + ' , ' + ']\n' + '[IP: ' + tools.getiPAddressUser(req) + ']';
|
||||||
tools.mylogshow(msg);
|
tools.mylogshow(msg);
|
||||||
await telegrambot.sendMsgTelegramToTheAdmin(myuser.idapp, msg, true);
|
await telegrambot.sendMsgTelegramToTheAdmin(req.body.idapp, msg, true);
|
||||||
tools.writeErrorLog(msg);
|
tools.writeErrorLog(msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user