mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-07-17 19:42:15 +00:00
remove hashed_password & salt from /user
This commit is contained in:
parent
9255644108
commit
5580fd6802
1 changed files with 2 additions and 0 deletions
|
|
@ -54,6 +54,8 @@ router.get '/user', auth, (req, res) ->
|
|||
user.stats.maxHealth = 50
|
||||
|
||||
delete user.apiToken
|
||||
delete user.auth.hashed_password
|
||||
delete user.auth.salt
|
||||
|
||||
res.json user
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue