Skip to content
This repository was archived by the owner on Dec 14, 2023. It is now read-only.

Commit ef7bd9b

Browse files
committed
add profilePassword as sensitive data field
1 parent 9244b84 commit ef7bd9b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lib/controllers/users/load.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ var _ = require('lodash');
1010
function cmd_load (args, done) {
1111
var seneca = this;
1212
var ENTITY_NS = 'sys/user';
13-
var sensitiveData = ['lmsId', 'pass', 'salt'];
13+
var sensitiveData = ['lmsId', 'pass', 'salt', 'profilePassword'];
1414
seneca.make(ENTITY_NS).load$(args.id, function (err, user) {
1515
return done(err, _.omit(user, sensitiveData));
1616
});

users.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,7 @@ module.exports = function (options) {
256256
delete user.active;
257257
delete user.accounts;
258258
delete user.confirmcode;
259+
delete user.profilePassword;
259260
return user;
260261
}
261262

0 commit comments

Comments
 (0)