Update tryPassword.tsx

This commit is contained in:
Thomas Camlong
2022-11-17 20:16:43 +09:00
committed by GitHub
parent 5f61940c92
commit d9ee11af79

View File

@@ -9,9 +9,9 @@ function Post(req: NextApiRequest, res: NextApiResponse) {
success: true, success: true,
}); });
} }
// Warn that there was a wrong password attempt (date : wrong password, password tried, person's IP) // Warn that there was a wrong password attempt (date : wrong password, person's IP)
Consola.warn( Consola.warn(
`${new Date().toLocaleString()} : Wrong password attempt, tried ${tried}, from ${ `${new Date().toLocaleString()} : Wrong password attempt, from ${
req.headers['x-forwarded-for'] req.headers['x-forwarded-for']
}` }`
); );