Merge pull request #4156 from overleaf/ae-login-log

Improve login error logging

GitOrigin-RevId: 0af1214890b014294077e585ec20f83fbb425c76
This commit is contained in:
Alf Eaton 2021-06-10 12:26:11 +01:00 committed by Copybot
parent 764234e42b
commit 29b92615ce

View file

@ -371,7 +371,7 @@ const AuthenticationController = {
expectedPassword.length === pass.length &&
crypto.timingSafeEqual(Buffer.from(expectedPassword), Buffer.from(pass))
if (!isValid) {
logger.err({ user, pass }, 'invalid login details')
logger.err({ user }, 'invalid login details')
}
return isValid
})