Skip to content

Node.js based forum software built for the modern web

fix: expire email validation tokens on password change

Julian Lamc93bd0105e9e
diff --git a/src/user/profile.js b/src/user/profile.js
index 66ca35d789..fc238ff87c 100644
--- a/src/user/profile.js
+++ b/src/user/profile.js
@@ -327,6 +327,7 @@ module.exports = function (User) {
User.reset.cleanByUid(data.uid),
User.reset.updateExpiry(data.uid),
User.auth.revokeAllSessions(data.uid),
+ User.email.expireValidation(data.uid),
]);
plugins.hooks.fire('action:password.change', { uid: uid, targetUid: data.uid });