aboutsummaryrefslogtreecommitdiffstats
path: root/routes/users.ts
diff options
context:
space:
mode:
Diffstat (limited to 'routes/users.ts')
-rw-r--r--routes/users.ts8
1 files changed, 0 insertions, 8 deletions
diff --git a/routes/users.ts b/routes/users.ts
index 4bce1bb4..6e4c98dd 100644
--- a/routes/users.ts
+++ b/routes/users.ts
@@ -373,14 +373,6 @@ export default {
const { username } = user;
l("logging in", username, ip);
- if (
- user.twofa &&
- (typeof twofa === "undefined" ||
- !authenticator.check(twofa, user.otpsecret))
- ) {
- return res.code(401).send("2fa required");
- }
-
const payload = { id: user.id };
const token = jwt.sign(payload, config.jwt);
res.cookie("token", token, { expires: new Date(Date.now() + 432000000) });