Require password before disable 2FA

This commit is contained in:
2024-08-15 01:32:32 +08:00
parent 19198537af
commit d3ae9e2cbd
2 changed files with 52 additions and 6 deletions

View File

@@ -209,6 +209,11 @@ router.post("/login", async (req, res) => {
return;
}
if (data.verify) {
res.status(200).json({ passedCheck: true });
return;
}
let userInfo = {
id: user.id,
email: user.email,