Revert "SessionStore: replace password with PASSWORD_HIDDEN when storing in db"
This reverts commitpull/4275/head53f126082a
, which broke user authentication. Fixes issue #4016. Reopens issue #3421. (cherry picked from commit901a3f396e
)
parent
89a155fdce
commit
6a0f73d137
|
@ -38,11 +38,6 @@ SessionStore.prototype.get = function(sid, fn) {
|
|||
SessionStore.prototype.set = function(sid, sess, fn) {
|
||||
messageLogger.debug('SET ' + sid);
|
||||
|
||||
// don't store passwords in DB
|
||||
if (sess.user && sess.user.password) {
|
||||
sess.user.password = "PASSWORD_HIDDEN";
|
||||
}
|
||||
|
||||
db.set("sessionstorage:" + sid, sess);
|
||||
if (fn) {
|
||||
process.nextTick(fn);
|
||||
|
|
Loading…
Reference in New Issue