Skip to content

Commit 6a0f73d

Browse files
rhansenmuxator
authored andcommitted
Revert "SessionStore: replace password with PASSWORD_HIDDEN when storing in db"
This reverts commit 53f1260, which broke user authentication. Fixes issue #4016. Reopens issue #3421. (cherry picked from commit 901a3f3)
1 parent 89a155f commit 6a0f73d

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/node/db/SessionStore.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,6 @@ SessionStore.prototype.get = function(sid, fn) {
3838
SessionStore.prototype.set = function(sid, sess, fn) {
3939
messageLogger.debug('SET ' + sid);
4040

41-
// don't store passwords in DB
42-
if (sess.user && sess.user.password) {
43-
sess.user.password = "PASSWORD_HIDDEN";
44-
}
45-
4641
db.set("sessionstorage:" + sid, sess);
4742
if (fn) {
4843
process.nextTick(fn);

0 commit comments

Comments
 (0)