mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-27 09:49:52 +01:00
revoke all sessions on email change
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user