明树Git Lab

Commit 6361c278 authored by Administrator's avatar Administrator

Merge branch 'dev' into 'master'

隐藏密码字段

See merge request !6
parents 7def91ab b2c8f073
Pipeline #104031 passed with stage
in 3 seconds
......@@ -146,6 +146,7 @@ async function getDepartUsers(req, res, next) {
{ model: DB.Position, as: 'positions', through: { attributes: [] } }
]
};
search.attributes = req.body.attributes || { exclude: ['password', 'salt'] };
if (!req.body.departId) {
return res.sendError(errorMessage.resourceNotFound);
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment