mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-02-01 03:12:42 +01:00
Revert "SessionStore: replace password with PASSWORD_HIDDEN when storing in db"
This reverts commit 53f126082a
, which
broke user authentication.
Fixes issue #4016.
Reopens issue #3421.
This commit is contained in:
parent
4644e7a127
commit
901a3f396e
1 changed files with 0 additions and 5 deletions
|
@ -38,11 +38,6 @@ SessionStore.prototype.get = function(sid, fn) {
|
||||||
SessionStore.prototype.set = function(sid, sess, fn) {
|
SessionStore.prototype.set = function(sid, sess, fn) {
|
||||||
messageLogger.debug('SET ' + sid);
|
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);
|
db.set("sessionstorage:" + sid, sess);
|
||||||
if (fn) {
|
if (fn) {
|
||||||
process.nextTick(fn);
|
process.nextTick(fn);
|
||||||
|
|
Loading…
Reference in a new issue