mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-07-22 05:44:16 +00:00
removing sensitive user data from export
This commit is contained in:
parent
d1240473dd
commit
878bfc7f46
1 changed files with 4 additions and 1 deletions
|
|
@ -31,7 +31,10 @@ dataexport.history = function(req, res) {
|
|||
}
|
||||
|
||||
var userdata = function(user) {
|
||||
//may eventually need to do some parsing here to eliminate/add from/to the object, just return user for now
|
||||
if(user.auth && user.auth.local) {
|
||||
delete user.auth.local.salt;
|
||||
delete user.auth.local.hashed_password;
|
||||
}
|
||||
return user;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue