From 7e688a352769f55cc142ffba68bea03c6c6f71fc Mon Sep 17 00:00:00 2001 From: IrosTheBeggar Date: Tue, 20 Oct 2020 04:10:57 -0400 Subject: [PATCH] log failed login attempts --- modules/login.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/login.js b/modules/login.js index f1f62f3..035eead 100644 --- a/modules/login.js +++ b/modules/login.js @@ -94,6 +94,8 @@ exports.setup = function (mstream, program) { // Failed Login Attempt mstream.get('/login-failed', (req, res) => { + winston.warn(`Failed login attempt from ${req.ip}`); + // Wait before sending the response setTimeout(() => { res.status(401).json({ error: 'Try Again' }); }, 800); });