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()) {
logWarning({
tags: ['user', 'login', 'password'],
message: `User ${username} tried to login but failed`,
data: err
message: `User ${username} tried to login but failed`
})
throw new Error('Usuário ou senha inválidos.')
} else {