diff --git a/src/user/profile.js b/src/user/profile.js index 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), ]);