mirror of
https://github.com/ether/etherpad-lite.git
synced 2026-05-12 15:56:16 +02:00
Revert "SessionStore: replace password with PASSWORD_HIDDEN when storing in db"
This reverts commit 53f126082a8b3d094e48b159f0f0bc8a5db4b2f4, which broke user authentication. Fixes issue #4016. Reopens issue #3421. (cherry picked from commit 901a3f396e1b3fffda940e06f23394ef55b5c992)
This commit is contained in:
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…
x
Reference in New Issue
Block a user