feat(login): add request ip to the failed request log (#714)

This commit is contained in:
Jakob Ankarhem
2021-01-22 16:23:07 +01:00
committed by GitHub
parent 3ebb7d087f
commit 2d31ea940a
4 changed files with 23 additions and 0 deletions

View File

@@ -151,6 +151,7 @@ authRoutes.post('/local', async (req, res, next) => {
logger.info('Failed login attempt from user with incorrect credentials', {
label: 'Auth',
account: {
ip: req.ip,
email: body.email,
password: '__REDACTED__',
},