Always clear sessions when user password is updated (#3821)
* Adds repro to issue #3289 * Always clear sessions when password is updated
This commit is contained in:
committed by
Arthur Cinader
parent
9dbb89a2e4
commit
17a2d269ef
@@ -375,9 +375,12 @@ RestWrite.prototype.transformUser = function() {
|
||||
return Promise.resolve();
|
||||
}
|
||||
|
||||
if (this.query && !this.auth.isMaster) {
|
||||
if (this.query) {
|
||||
this.storage['clearSessions'] = true;
|
||||
this.storage['generateNewSession'] = true;
|
||||
// Generate a new session only if the user requested
|
||||
if (!this.auth.isMaster) {
|
||||
this.storage['generateNewSession'] = true;
|
||||
}
|
||||
}
|
||||
|
||||
return this._validatePasswordPolicy().then(() => {
|
||||
|
||||
Reference in New Issue
Block a user