Remove error data from log

This commit is contained in:
Douglas Barone 2020-12-22 11:51:01 -04:00
parent fc4fa88295
commit f5d06f8782

View File

@ -299,8 +299,7 @@ class User {
if (await ad.checkBinding()) { if (await ad.checkBinding()) {
logWarning({ logWarning({
tags: ['user', 'login', 'password'], tags: ['user', 'login', 'password'],
message: `User ${username} tried to login but failed`, message: `User ${username} tried to login but failed`
data: err
}) })
throw new Error('Usuário ou senha inválidos.') throw new Error('Usuário ou senha inválidos.')
} else { } else {