diff --git a/src/routes/user.js b/src/routes/user.js index 0a0e7841a..6fe5e6b4f 100644 --- a/src/routes/user.js +++ b/src/routes/user.js @@ -153,6 +153,8 @@ function verifyPassword(req, res, next) { if (error && error.reason === UserError.NOT_FOUND) return next(new HttpError(403, 'Password incorrect')); if (error) return next(new HttpError(500, error)); + req.body.password = ''; // this will prevent logs from displaying plain text password + next(); }); }