mirror of
https://github.com/xfarrow/blink
synced 2025-06-27 09:03:02 +02:00
update
This commit is contained in:
1
backend/apis/BlinkApiUsageExample.json
Normal file
1
backend/apis/BlinkApiUsageExample.json
Normal file
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user