This commit is contained in:
xfarrow 2023-10-18 10:08:46 +02:00
parent b0e793c5fc
commit d83c7df663
3 changed files with 2 additions and 1 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -106,6 +106,7 @@ async function getPerson(req, res){
if(user){
if(user.id == req.jwt.person_id || user.enabled){
delete user['password']; // remove password field for security reasons
return res.status(200).send(user);
}
}