mirror of
https://github.com/xfarrow/blink
synced 2025-02-27 09:37:36 +01:00
update
This commit is contained in:
parent
b0e793c5fc
commit
d83c7df663
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user