mirror of https://github.com/xfarrow/blink
update
This commit is contained in:
parent
b0e793c5fc
commit
d83c7df663
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -106,6 +106,7 @@ async function getPerson(req, res){
|
||||||
|
|
||||||
if(user){
|
if(user){
|
||||||
if(user.id == req.jwt.person_id || user.enabled){
|
if(user.id == req.jwt.person_id || user.enabled){
|
||||||
|
delete user['password']; // remove password field for security reasons
|
||||||
return res.status(200).send(user);
|
return res.status(200).send(user);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue