mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-12 00:45:47 +01:00
feat: plumb current session id into email removal/confirmation flow, so all other sessions are revoked except for the current session
This utilises the new argument in user.auth.revokeAllSessions
This commit is contained in:
@@ -279,7 +279,7 @@ User.addInterstitials = function (callback) {
|
||||
}
|
||||
} else {
|
||||
// User explicitly clearing their email
|
||||
await User.email.remove(userData.uid);
|
||||
await User.email.remove(userData.uid, data.req.session.id);
|
||||
}
|
||||
} else {
|
||||
// New registrants have the confirm email sent from user.create()
|
||||
|
||||
Reference in New Issue
Block a user