feat: revoke user sessions on successful password reset

isekai-main
Julian Lam 3 years ago
parent be4dbe3441
commit 6ca216ab6e

@ -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),
]); ]);
}; };

Loading…
Cancel
Save