Node.js based forum software built for the modern web
fix: password reset to invalidate all existing reset tokens for that uid
Julian Lam30b3fedca430
diff --git a/src/user/profile.js b/src/user/profile.jsindex 229c5243bd..00e8970c35 100644--- a/src/user/profile.js+++ b/src/user/profile.js@@ -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),]);