fix: expire email validation tokens on password change

isekai-main
Julian Lam 3 years ago
parent 6f88894cb9
commit c93bd0105e

@ -327,6 +327,7 @@ module.exports = function (User) {
User.reset.cleanByUid(data.uid), User.reset.cleanByUid(data.uid),
User.reset.updateExpiry(data.uid), User.reset.updateExpiry(data.uid),
User.auth.revokeAllSessions(data.uid), User.auth.revokeAllSessions(data.uid),
User.email.expireValidation(data.uid),
]); ]);
plugins.hooks.fire('action:password.change', { uid: uid, targetUid: data.uid }); plugins.hooks.fire('action:password.change', { uid: uid, targetUid: data.uid });

Loading…
Cancel
Save