mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-19 23:10:21 +01:00
feat: clear reset tokens on successful login
This commit is contained in:
@@ -360,6 +360,7 @@ authenticationController.onSuccessfulLogin = async function (req, uid) {
|
||||
await meta.blacklist.test(req.ip);
|
||||
await user.logIP(uid, req.ip);
|
||||
await user.bans.unbanIfExpired([uid]);
|
||||
await user.reset.cleanByUid(uid);
|
||||
|
||||
req.session.meta = {};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user