mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: password reset to invalidate all existing reset tokens for that uid
This commit is contained in:
@@ -325,6 +325,7 @@ module.exports = function (User) {
|
||||
password: hashedPassword,
|
||||
rss_token: utils.generateUUID(),
|
||||
}),
|
||||
User.reset.cleanByUid(data.uid),
|
||||
User.reset.updateExpiry(data.uid),
|
||||
User.auth.revokeAllSessions(data.uid),
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user