Prevents leaking the encrypted password and verification tokens to the user when they update their account.
This commit is contained in:
parent
772a7c9370
commit
00391a4ef9
1 changed files with 7 additions and 1 deletions
|
@ -292,7 +292,13 @@ export function saveUser(res, user) {
|
|||
return;
|
||||
}
|
||||
|
||||
res.json(user);
|
||||
res.json({
|
||||
email: user.email,
|
||||
username: user.username,
|
||||
preferences: user.preferences,
|
||||
verified: user.verified,
|
||||
id: user._id
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue