sparkles: Removed fields from user account view
This commit is contained in:
parent
ae5713b58e
commit
c313319397
1 changed files with 2 additions and 0 deletions
|
@ -146,6 +146,8 @@ UserSchema.methods.account = function() {
|
|||
let account = this.toObject();
|
||||
delete account.password;
|
||||
delete account.ehash;
|
||||
delete account._ac;
|
||||
delete account._ct;
|
||||
|
||||
return account;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue