Node.js based forum software built for the modern web
revoke all sessions on email change
Julian Lam7e6007e1464f
diff --git a/src/user/profile.js b/src/user/profile.jsindex 5ee4fed689..5da6eb7409 100644--- a/src/user/profile.js+++ b/src/user/profile.js@@ -200,6 +200,7 @@ module.exports = function (User) {async.series([async.apply(db.sortedSetRemove, 'email:uid', oldEmail.toLowerCase()),async.apply(db.sortedSetRemove, 'email:sorted', oldEmail.toLowerCase() + ':' + uid),+ async.apply(User.auth.revokeAllSessions, uid),], function (err) {next(err);});