Skip to content

Commit

Permalink
Always clear sessions when password is updated
Browse files Browse the repository at this point in the history
  • Loading branch information
flovilmart committed May 16, 2017
1 parent 10ab95b commit 3c80a2d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/RestWrite.js
Original file line number Diff line number Diff line change
Expand Up @@ -375,8 +375,12 @@ RestWrite.prototype.transformUser = function() {
return Promise.resolve();
}

if (this.query && !this.auth.isMaster) {
if (this.query) {
this.storage['clearSessions'] = true;
}

// Generate a new session only if the user requested
if (!this.auth.isMaster) {
this.storage['generateNewSession'] = true;
}

Expand Down

0 comments on commit 3c80a2d

Please sign in to comment.