mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
feat: revoke user sessions on successful password reset
This commit is contained in:
@@ -105,6 +105,7 @@ UserReset.commit = async function (code, password) {
|
|||||||
]),
|
]),
|
||||||
user.reset.updateExpiry(uid),
|
user.reset.updateExpiry(uid),
|
||||||
user.auth.resetLockout(uid),
|
user.auth.resetLockout(uid),
|
||||||
|
user.auth.revokeAllSessions(uid),
|
||||||
user.email.expireValidation(uid),
|
user.email.expireValidation(uid),
|
||||||
]);
|
]);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user